Better to use isEventPeriod than isActive.

This commit is contained in:
MobiusDev
2017-10-11 00:03:36 +00:00
parent 0475e83440
commit 724da98e2e
3 changed files with 3 additions and 3 deletions

View File

@@ -251,7 +251,7 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS) @RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event) public void onPlayerLogin(OnPlayerLogin event)
{ {
if (isActive()) if (isEventPeriod())
{ {
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1)); event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
} }

View File

@@ -251,7 +251,7 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS) @RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event) public void onPlayerLogin(OnPlayerLogin event)
{ {
if (isActive()) if (isEventPeriod())
{ {
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1)); event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
} }

View File

@@ -251,7 +251,7 @@ public final class LoversJubilee extends LongTimeEvent
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS) @RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerLogin(OnPlayerLogin event) public void onPlayerLogin(OnPlayerLogin event)
{ {
if (isActive()) if (isEventPeriod())
{ {
event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1)); event.getActiveChar().sendPacket(new ExBrBroadcastEventState(ExBrBroadcastEventState.LOVERS_JUBILEE, 1));
} }