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
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
if (instance != null) {
|
if (instance != null || System.getProperty("ChestCommandsLoaded") != null) {
|
||||||
getLogger().warning("Please do not use /reload or plugin reloaders. Do \"/cc reload\" instead.");
|
getLogger().warning("Please do not use /reload or plugin reloaders. Use the command \"/cc reload\" instead.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.setProperty("ChestCommandsLoaded", "true");
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
menuManager = new MenuManager();
|
menuManager = new MenuManager();
|
||||||
settings = new Settings();
|
settings = new Settings();
|
||||||
|
Loading…
Reference in New Issue
Block a user