forked from LogBlock/LogBlock
@ -100,13 +100,9 @@ public class LogBlock extends JavaPlugin {
|
|||||||
pm.disablePlugin(this);
|
pm.disablePlugin(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pm.getPlugin("WorldEdit") != null) {
|
if (pm.getPlugin("WorldEdit") != null) {
|
||||||
if (Integer.parseInt(pm.getPlugin("WorldEdit").getDescription().getVersion().substring(0, 1)) > 5) {
|
new WorldEditLoggingHook(this).hook();
|
||||||
new WorldEditLoggingHook(this).hook();
|
|
||||||
} else {
|
|
||||||
getLogger().warning("Failed to hook into WorldEdit. Your WorldEdit version seems to be outdated, please make sure WorldEdit is at least version 6.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
commandsHandler = new CommandsHandler(this);
|
commandsHandler = new CommandsHandler(this);
|
||||||
getCommand("lb").setExecutor(commandsHandler);
|
getCommand("lb").setExecutor(commandsHandler);
|
||||||
|
Reference in New Issue
Block a user