diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java index 24abb7364c..f4fd256085 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/commands/subcommands/VersionsCommand.java @@ -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; @@ -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) { @@ -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" + + "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);