Added more informational dialouge

This commit is contained in:
alisolarflare 2016-12-26 23:55:09 -05:00
parent f843ea0380
commit 13fb77a273

View file

@ -23,11 +23,14 @@ public class CreativeKillLoop extends BukkitRunnable implements Listener {
if (!player.getWorld().getName().equalsIgnoreCase("world")) continue; if (!player.getWorld().getName().equalsIgnoreCase("world")) continue;
if (player.isOp()) continue; if (player.isOp()) continue;
player.sendMessage("[Hotfix] Every Gamemode other than survival is disabled in the new world");
player.setGameMode(GameMode.SURVIVAL);
location = player.getLocation(); location = player.getLocation();
if (location.getBlockX() < 250 && location.getBlockX() > -250) continue; if (location.getBlockX() < 250 && location.getBlockX() > -250) continue;
if (location.getBlockZ() < 250 && location.getBlockZ() > -250) continue; if (location.getBlockZ() < 250 && location.getBlockZ() > -250) continue;
player.sendMessage("[Hotfix] Every Gamemode other than survival is disabled in the new world!"); player.sendMessage("[Hotfix] Unless you are in Spawn Island!");
player.setGameMode(GameMode.SURVIVAL); player.setGameMode(GameMode.SURVIVAL);
} }