Skip to content
Snippets Groups Projects
Commit 91adae17 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: DP-Part for [L5916]

parent cc8bcf94
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ public class AdminTvTEvent implements IAdminCommandHandler ...@@ -81,7 +81,7 @@ public class AdminTvTEvent implements IAdminCommandHandler
private void add(L2PcInstance activeChar, L2PcInstance playerInstance) private void add(L2PcInstance activeChar, L2PcInstance playerInstance)
{ {
if (TvTEvent.isPlayerParticipant(playerInstance.getObjectId())) if (playerInstance.isOnEvent())
{ {
activeChar.sendMessage("Player already participated in the event!"); activeChar.sendMessage("Player already participated in the event!");
return; return;
......
...@@ -25,7 +25,6 @@ import com.l2jserver.gameserver.model.actor.L2Character; ...@@ -25,7 +25,6 @@ import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2OlympiadManagerInstance; import com.l2jserver.gameserver.model.actor.instance.L2OlympiadManagerInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.TvTEvent;
import com.l2jserver.gameserver.model.olympiad.Olympiad; import com.l2jserver.gameserver.model.olympiad.Olympiad;
import com.l2jserver.gameserver.model.olympiad.OlympiadGameManager; import com.l2jserver.gameserver.model.olympiad.OlympiadGameManager;
import com.l2jserver.gameserver.model.olympiad.OlympiadGameTask; import com.l2jserver.gameserver.model.olympiad.OlympiadGameTask;
...@@ -79,9 +78,9 @@ public class OlympiadObservation implements IBypassHandler ...@@ -79,9 +78,9 @@ public class OlympiadObservation implements IBypassHandler
return false; return false;
} }
if (!TvTEvent.isInactive() && TvTEvent.isPlayerParticipant(activeChar.getObjectId())) if (activeChar.isOnEvent())
{ {
activeChar.sendMessage("You can not observe games while registered for TvT"); activeChar.sendMessage("You can not observe games while registered on an event");
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment