mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-24 17:57:36 +01:00
Prevention against /reload and plugin reloaders.
This commit is contained in:
parent
ba127f8d9a
commit
a3e9119f65
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user