mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-17 21:06:11 +00:00
Wipe worldguard regions when the flatlands is wiped.
This commit is contained in:
parent
6e2255c904
commit
0898c0a81b
@ -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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user