From 0898c0a81b08413b9d55bf8c17399ce609fb3961 Mon Sep 17 00:00:00 2001 From: ZeroEpoch1969 <13510767+ZeroEpoch1969@users.noreply.github.com> Date: Sat, 16 Jun 2018 12:50:35 -0700 Subject: [PATCH] Wipe worldguard regions when the flatlands is wiped. --- .../totalfreedommod/command/Command_wipeflatlands.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_wipeflatlands.java b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_wipeflatlands.java index c6e90f31..95a90bef 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/command/Command_wipeflatlands.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/command/Command_wipeflatlands.java @@ -20,6 +20,8 @@ public class Command_wipeflatlands extends FreedomCommand FUtil.bcastMsg("Server is going offline for flatlands wipe.", ChatColor.GRAY); + plugin.wgb.wipeRegions(plugin.wm.flatlands.getWorld()); + for (Player player : server.getOnlinePlayers()) { player.kickPlayer("Server is going offline for flatlands wipe, come back in a few minutes.");