From c265beddb18b44ff69b137c9193e483988ffe8cd Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Fri, 26 Jan 2018 13:45:59 -0500 Subject: [PATCH] Fix RaidManager ONLY allowing players with PvP timers into the raid :P --- .../game/clans/clans/worldevent/raid/RaidManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/raid/RaidManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/raid/RaidManager.java index e5bbe793d..6db282ec7 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/raid/RaidManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/worldevent/raid/RaidManager.java @@ -78,7 +78,7 @@ public class RaidManager extends MiniPlugin _raids.clear(); } - private boolean isEligible(Player player) + private boolean isIneligible(Player player) { if (ClansManager.getInstance().hasTimer(player)) { @@ -86,10 +86,10 @@ public class RaidManager extends MiniPlugin { UtilPlayer.message(player, F.main(getName(), "You cannot enter a Raid whilst protected from PvP. Run " + F.elem("/pvp") + " to enable PvP!")); } - return false; + return true; } - return true; + return false; } public DisguiseManager getDisguiseManager() @@ -143,7 +143,7 @@ public class RaidManager extends MiniPlugin return false; } Set inside = UtilPlayer.getInRadius(player.getLocation(), 4).keySet(); - inside.removeIf(this::isEligible); + inside.removeIf(this::isIneligible); if (inside.size() > MAX_PARTICIPANTS) { UtilPlayer.message(player, F.main(type.getRaidName() + " Raid", "You cannot start a raid with more than " + MAX_PARTICIPANTS + " participants!"));