- Testing setup
This commit is contained in:
parent
5a94e33d5e
commit
91ddcdb149
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user