if (!canBypassCheck(player, this))
{
return;
}
UndergroundColiseumEvent coliseumEvent = EventHolder.getInstance().getEvent(EventType.MAIN_EVENT, _coliseumId);
if (command.equals("register"))
{
Party party = player.getParty();
if (party == null)
{
showChatWindow(player, "events/kerthang_manager008.htm");
}
else if (party.getPartyLeader() != player)
{
showChatWindow(player, "events/kerthang_manager004.htm");
}
else
{
for (Player $player : party)
{
if (($player.getLevel() < coliseumEvent.getMinLevel()) || ($player.getLevel() > coliseumEvent.getMaxLevel()))
{
showChatWindow(player, "events/kerthang_manager011.htm", "%name%", $player.getName());
return;
}
}
}
}
else if (command.equals("viewTeams"))
{
List<Player> reg = coliseumEvent.getRegisteredPlayers();
NpcHtmlMessage msg = new NpcHtmlMessage(player, this);
msg.setFile("events/kerthang_manager003.htm");
for (int i = 0; i < 5; i++)
{