Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add rc warnings to sf versions command #4129

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.bukkit.plugin.Plugin;

import io.github.thebusybiscuit.slimefun4.api.SlimefunAddon;
import io.github.thebusybiscuit.slimefun4.api.SlimefunBranch;
import io.github.thebusybiscuit.slimefun4.core.commands.SlimefunCommand;
import io.github.thebusybiscuit.slimefun4.core.commands.SubCommand;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
Expand Down Expand Up @@ -83,7 +84,7 @@ public void onExecute(@Nonnull CommandSender sender, @Nonnull String[] args) {
.append(")").color(ChatColor.GRAY);
}

builder.append("\n");
builder.append("\n").event((HoverEvent) null);
// @formatter:on

if (Slimefun.getMetricsService().getVersion() != null) {
Expand All @@ -97,6 +98,17 @@ public void onExecute(@Nonnull CommandSender sender, @Nonnull String[] args) {

addJavaVersion(builder);

if (Slimefun.getUpdater().getBranch() == SlimefunBranch.STABLE) {
builder.append("\nYou are using a RC (stable) version, " +
"\nDO NOT report any bugs to Discord/GitHub.\n")
.color(ChatColor.RED)
.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(
"We do not provide support for stable versions, use with caution!\n" +
ybw0014 marked this conversation as resolved.
Show resolved Hide resolved
"Please do not report any bugs with this version.\n" +
"Upgrade to Dev version first for support."
)));
}

builder.append("\n").event((HoverEvent) null);
addPluginVersions(builder);

Expand Down
Loading