Wipe worldguard regions when the flatlands is wiped.

This commit is contained in:
ZeroEpoch1969 2018-06-16 12:50:35 -07:00
parent 6e2255c904
commit 0898c0a81b
No known key found for this signature in database
GPG Key ID: E0AAB104FB9F8FDF

View File

@ -20,6 +20,8 @@ public class Command_wipeflatlands extends FreedomCommand
FUtil.bcastMsg("Server is going offline for flatlands wipe.", ChatColor.GRAY); FUtil.bcastMsg("Server is going offline for flatlands wipe.", ChatColor.GRAY);
plugin.wgb.wipeRegions(plugin.wm.flatlands.getWorld());
for (Player player : server.getOnlinePlayers()) for (Player player : server.getOnlinePlayers())
{ {
player.kickPlayer("Server is going offline for flatlands wipe, come back in a few minutes."); player.kickPlayer("Server is going offline for flatlands wipe, come back in a few minutes.");