Better to use isEventPeriod than isActive.
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user