Warn about missing command.

This commit is contained in:
filoghost 2015-01-08 12:42:47 +01:00
parent 79b32bd11b
commit c6cb1d9d62

View File

@ -201,6 +201,18 @@ public class HolographicDisplays extends JavaPlugin {
}
}
if (getCommand("holograms") == null) {
printWarnAndDisable(
"******************************************************",
" HolographicDisplays was unable to register",
" the command \"holograms\". Do not modify",
" plugin.yml removing commands, if you're",
" doing so.",
"******************************************************"
);
return;
}
getCommand("holograms").setExecutor(commandHandler = new HologramsCommandHandler());
Bukkit.getPluginManager().registerEvents(new MainListener(nmsManager), this);