From a49ce02bd0dd98d1a1f4ad94f93ea1b9728047b4 Mon Sep 17 00:00:00 2001 From: IronApollo Date: Tue, 15 Sep 2020 19:18:16 -0400 Subject: [PATCH] Delete DummyFawe on startup --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 cbd3d0c83..c7e0788d7 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 @@ -135,11 +135,12 @@ public class WorldEditPlugin extends JavaPlugin { //implements TabCompleter if (this.getDataFolder().getParentFile().listFiles(file -> { if (file.getName().equals("DummyFawe.jar")) { + file.delete(); return true; } return false; }).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."); } }