Prevention against /reload and plugin reloaders.

This commit is contained in:
filoghost 2014-09-01 10:18:10 +02:00
parent ba127f8d9a
commit a3e9119f65

View File

@ -42,6 +42,12 @@ public class HolographicDisplays extends JavaPlugin {
private static PlaceholderManager placeholderManager;
public void onEnable() {
if (instance != null) {
getLogger().warning("Please do not use /reload or plugin reloaders. Do \"/hd reload\" instead.");
return;
}
instance = this;
logger = getLogger();