From 02a6caa3ab77d0870dc3dc60cde039eb6d93c31a Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 23 Apr 2019 23:30:43 +1000 Subject: [PATCH] Don't load dummy twice --- .../java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index 17e89c30c..501febdf6 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -318,17 +318,17 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter { File pluginsFolder = MainUtil.getJarFile().getParentFile(); for (File file : pluginsFolder.listFiles()) { - if (file.length() == 1073) return; + if (file.length() == 1988) return; } File dummy = MainUtil.copyFile(MainUtil.getJarFile(), "DummyFawe.src", pluginsFolder, "DummyFawe.jar"); - if (dummy != null && dummy.exists()) { + if (dummy != null && dummy.exists() && Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") == null) { try { Bukkit.getPluginManager().loadPlugin(dummy); } catch (Throwable e) { e.printStackTrace(); } + getLogger().info("Please restart the server if you have any plugins which depend on FAWE."); } - getLogger().info("Please restart the server if you have any plugins which depend on FAWE."); } }