mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-20 07:47:38 +01:00
Warn about missing command.
This commit is contained in:
parent
79b32bd11b
commit
c6cb1d9d62
@ -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());
|
getCommand("holograms").setExecutor(commandHandler = new HologramsCommandHandler());
|
||||||
Bukkit.getPluginManager().registerEvents(new MainListener(nmsManager), this);
|
Bukkit.getPluginManager().registerEvents(new MainListener(nmsManager), this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user