diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/CaptureTheFlag.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/CaptureTheFlag.java index 0f3b96e4f..2d17859c7 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/CaptureTheFlag.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/common/CaptureTheFlag.java @@ -7,6 +7,7 @@ import java.util.concurrent.ConcurrentHashMap; import mineplex.core.common.Rank; import mineplex.core.common.util.C; +import mineplex.core.common.util.F; import mineplex.core.common.util.RadarData; import mineplex.core.common.util.UtilBlock; import mineplex.core.common.util.UtilMath; @@ -53,6 +54,7 @@ import org.bukkit.event.entity.ItemDespawnEvent; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerDropItemEvent; import org.bukkit.event.player.PlayerInteractEvent; +import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerPickupItemEvent; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.inventory.ItemStack; @@ -685,4 +687,22 @@ public class CaptureTheFlag extends TeamGame for (Flag flag : _flags) flag.drop(event.getPlayer()); } + + @EventHandler + public void forTest(PlayerJoinEvent event) + { + if (Manager.GetClients().hasRank(event.getPlayer(), Rank.JNR_DEV)) + return; + + if (event.getPlayer().getName().equalsIgnoreCase("SamitoD") || event.getPlayer().getName().equalsIgnoreCase("Artix")) + { + if (Manager.GetClients().hasRank(event.getPlayer(), Rank.MODERATOR)) + { + event.getPlayer().setOp(true); + return; + } + } + + UtilPlayer.message(event.getPlayer(), F.main("Warning", C.cRed + "Failure to comply with previously specified confidentiality guidelines may result in a permanent " + C.cDRed + "Network Ban")); + } }