mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Delete DummyFawe on startup
This commit is contained in:
parent
cd5691b819
commit
a49ce02bd0
@ -135,11 +135,12 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter
|
|||||||
|
|
||||||
if (this.getDataFolder().getParentFile().listFiles(file -> {
|
if (this.getDataFolder().getParentFile().listFiles(file -> {
|
||||||
if (file.getName().equals("DummyFawe.jar")) {
|
if (file.getName().equals("DummyFawe.jar")) {
|
||||||
|
file.delete();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}).length > 0) {
|
}).length > 0) {
|
||||||
getLogger().warning("DummyFawe detected! This is no longer necessary. Please remove immediately and restart your server!");
|
getLogger().warning("DummyFawe detected and automatically deleted! This file is no longer necessary.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user