From f843ea0380b8aeade755caf507d6c15e8d9302ef Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Mon, 26 Dec 2016 23:39:33 -0500 Subject: [PATCH] Testing in production --- .../components/hotfix/hotfixes/CreativeKillLoop.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java b/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java index 7e759b2..cc5a3aa 100644 --- a/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java +++ b/src/buttondevteam/alipresents/components/hotfix/hotfixes/CreativeKillLoop.java @@ -20,12 +20,12 @@ public class CreativeKillLoop extends BukkitRunnable implements Listener { Location location; for (Player player : plugin.getServer().getOnlinePlayers()){ if (player.getGameMode() == GameMode.SURVIVAL) continue; - if (player.getWorld().getName().equalsIgnoreCase("world")) continue; + if (!player.getWorld().getName().equalsIgnoreCase("world")) continue; if (player.isOp()) continue; location = player.getLocation(); - if (250 > location.getBlockX() && location.getBlockX() > -250) continue; - if (250 > location.getBlockZ() && location.getBlockZ() > -250) continue; + if (location.getBlockX() < 250 && location.getBlockX() > -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.setGameMode(GameMode.SURVIVAL);