Bladeren bron

Players can't register to oly while participating on TvT event.

_DS_ 15 jaren geleden
bovenliggende
commit
1a389882dd
1 gewijzigde bestanden met toevoegingen van 5 en 0 verwijderingen
  1. 5 0
      L2_GameServer/java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java

+ 5 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java

@@ -512,6 +512,11 @@ public class Olympiad
 			noble.sendPacket(sm);
 			return false;
 		}
+		if (TvTEvent.isPlayerParticipant(noble.getObjectId()))
+		{
+			noble.sendMessage("You can't join olympiad while participating on TvT Event.");
+			return false;
+		}
 		/** End Olympiad Restrictions */
 		
 		if (_classBasedRegisters.containsKey(noble.getClassId().getId()))