mirror of
https://github.com/filoghost/ChestCommands.git
synced 2024-11-26 03:55:40 +01:00
Ensure plugin reloaders (or /reload) won't work
This commit is contained in:
parent
f7fc2f2baa
commit
022040c81f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user