forked from LogBlock/LogBlock
And disable ourselves
This commit is contained in:
@@ -114,8 +114,11 @@ public class LogBlock extends JavaPlugin
|
|||||||
}
|
}
|
||||||
if (noDb)
|
if (noDb)
|
||||||
return;
|
return;
|
||||||
if (pm.getPlugin("WorldEdit") == null)
|
if (pm.getPlugin("WorldEdit") == null) {
|
||||||
new Exception("WorldEdit is not installed please download and install").printStackTrace();
|
new Exception("WorldEdit is not installed please download and install").printStackTrace();
|
||||||
|
pm.disablePlugin(this);
|
||||||
|
return;
|
||||||
|
}
|
||||||
commandsHandler = new CommandsHandler(this);
|
commandsHandler = new CommandsHandler(this);
|
||||||
getCommand("lb").setExecutor(commandsHandler);
|
getCommand("lb").setExecutor(commandsHandler);
|
||||||
if (enableAutoClearLog && autoClearLogDelay > 0)
|
if (enableAutoClearLog && autoClearLogDelay > 0)
|
||||||
|
Reference in New Issue
Block a user