as i see versus you got com.l2jserver.. but anyway
if (Olympiad.getInstance().isRegisteredInComp(player)
|| player.getOlympiadGameId() > 0)
{
player.sendPacket(new SystemMessage(
SystemMessageId.YOU_HAVE_ALREADY_BEEN_REGISTERED_IN_A_WAITING_LIST_OF_AN_EVENT));
return;
}
+ if (player.isInCombat() || player.isInParty())
+ {
+ player.sendMessage("Your status don't allow a subclass change.");
+ return;
+ }
player.setActiveClass(paramOne);
content.append("Change Subclass:<br>Your active sub class is now a <font color=\"LEVEL\">"
+ CharTemplateTable.getClassNameById(player.getActiveClass()) + "</font>.");