There is no older WorldEdit for Minecraft 1.13

Resolves #714
This commit is contained in:
Brokkonaut
2018-08-29 02:43:07 +02:00
parent f65509408e
commit 2faa9cbd6d

View File

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