Show event panel when event is active.

This commit is contained in:
MobiusDev 2017-10-10 23:52:24 +00:00
parent 1c93559651
commit 0475e83440
3 changed files with 12 additions and 3 deletions

View File

@ -250,9 +250,12 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterEvent(EventType.ON_PLAYER_LOGIN)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event)
{
if (isActive())
{
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
}
}
public static void main(String[] args)
{

View File

@ -250,9 +250,12 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterEvent(EventType.ON_PLAYER_LOGIN)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event)
{
if (isActive())
{
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
}
}
public static void main(String[] args)
{

View File

@ -250,9 +250,12 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterEvent(EventType.ON_PLAYER_LOGIN)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event)
{
if (isActive())
{
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
}
}
public static void main(String[] args)
{