Added more informational dialouge
This commit is contained in:
parent
f843ea0380
commit
13fb77a273
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue