And disable ourselves

This commit is contained in:
md_5
2012-08-05 20:24:31 +10:00
parent 8bc648e971
commit afe395d83b

View File

@@ -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)