geforkt von Mirrors/FastAsyncWorldEdit
Check before copy
Dieser Commit ist enthalten in:
Ursprung
c6ce0c773f
Commit
219321b777
@ -321,9 +321,9 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter
|
||||
for (File file : pluginsFolder.listFiles()) {
|
||||
if (file.length() == 1988) return;
|
||||
}
|
||||
Plugin plugin = Bukkit.getPluginManager().getPlugin("FastAsyncWorldEdit");
|
||||
File dummy = MainUtil.copyFile(MainUtil.getJarFile(), "DummyFawe.src", pluginsFolder, "DummyFawe.jar");
|
||||
File newFile = new File(pluginsFolder, "DummyFawe.jar");
|
||||
if (dummy != null && dummy.exists() && !newFile.exists()) {
|
||||
if (dummy != null && dummy.exists() && plugin == this) {
|
||||
try {
|
||||
Bukkit.getPluginManager().loadPlugin(dummy);
|
||||
} catch (Throwable e) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren