Forgot FAWE was already added to lookup names

This commit is contained in:
Jesse Boyd 2019-04-23 23:44:47 +10:00
parent aaa39d1d32
commit 1503ba94a4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -322,7 +322,8 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter
if (file.length() == 1988) return;
}
File dummy = MainUtil.copyFile(MainUtil.getJarFile(), "DummyFawe.src", pluginsFolder, "DummyFawe.jar");
if (dummy != null && dummy.exists() && Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit") == null) {
File newFile = new File(pluginsFolder, "DummyFawe.jar");
if (dummy != null && dummy.exists() && !newFile.exists()) {
try {
Bukkit.getPluginManager().loadPlugin(dummy);
} catch (Throwable e) {