diff --git a/Plugin/src/main/java/me/filoghost/chestcommands/ChestCommands.java b/Plugin/src/main/java/me/filoghost/chestcommands/ChestCommands.java index 1015fc1..17ddc28 100644 --- a/Plugin/src/main/java/me/filoghost/chestcommands/ChestCommands.java +++ b/Plugin/src/main/java/me/filoghost/chestcommands/ChestCommands.java @@ -69,11 +69,13 @@ public class ChestCommands extends JavaPlugin { @Override public void onEnable() { - if (instance != null) { - getLogger().warning("Please do not use /reload or plugin reloaders. Do \"/cc reload\" instead."); + if (instance != null || System.getProperty("ChestCommandsLoaded") != null) { + getLogger().warning("Please do not use /reload or plugin reloaders. Use the command \"/cc reload\" instead."); return; } + System.setProperty("ChestCommandsLoaded", "true"); + instance = this; menuManager = new MenuManager(); settings = new Settings();