diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/HillData.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/HillData.java index ecd2c28c8..7ed32b8b4 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/HillData.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/HillData.java @@ -41,7 +41,7 @@ public class HillData public boolean isOnHill(Location location, Location eventLocation) { - return location.getWorld().equals(eventLocation.getWorld()) && UtilMath.offset(location, eventLocation) <= 36; + return location.getWorld().equals(eventLocation.getWorld()) && UtilMath.offset(location, eventLocation.clone().add(0, 12, 0)) <= 7.5; } public Location getHillCenter(Location eventLocation) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/KingHill.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/KingHill.java index f7829f999..dfe1d6d27 100755 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/KingHill.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/kinghill/KingHill.java @@ -114,10 +114,11 @@ public class KingHill extends WorldEvent for (Player player : UtilServer.getPlayers()) { + System.out.println(getCenterLocation()); if (_hill.isOnHill(player.getLocation(), getCenterLocation())) { ClanInfo playerClan = _clansManager.getClan(player); - if (playerClan != null) + if (playerClan != null && !playerClan.equals(lastClan)) { clanCount++; lastClan = playerClan;