From 8e2e389f78351199ff6ba4481b5cd410c3d82c68 Mon Sep 17 00:00:00 2001 From: hyperdefined Date: Sun, 26 Jan 2025 16:53:59 -0500 Subject: [PATCH] add this warning --- .../java/lol/hyper/toolstats/commands/CommandToolStats.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java b/src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java index f913d5a..b69b3cc 100644 --- a/src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java +++ b/src/main/java/lol/hyper/toolstats/commands/CommandToolStats.java @@ -69,6 +69,7 @@ public class CommandToolStats implements TabExecutor { if (toolStats.tokens != oldTokensStatus) { // tokens are now enabled if (toolStats.tokens) { + sender.sendMessage(Component.text("It looks like you ENABLED the token system. While this is fine, it can break. Please restart your server instead.", NamedTextColor.YELLOW)); if (toolStats.config.getBoolean("tokens.craft-token")) { for (ShapedRecipe recipe : toolStats.tokenCrafting.getRecipes()) { Bukkit.addRecipe(recipe); @@ -76,6 +77,7 @@ public class CommandToolStats implements TabExecutor { } } else { // tokens are now disabled + sender.sendMessage(Component.text("It looks like you DISABLED the token system. While this is fine, it can break. Please restart your server instead.", NamedTextColor.YELLOW)); for (ShapedRecipe recipe : toolStats.tokenCrafting.getRecipes()) { Bukkit.removeRecipe(recipe.getKey()); }