package com.aionemu.gameserver.model;
import com.aionemu.gameserver.model.gameobjects.player.Player;
/**
* @author Mr. Poke
*/
public interface Expirable {
public int getExpireTime();
public default int secondsUntilExpiration() {
return getExpireTime() == 0 ? 0 : getExpireTime() - (int) (System.currentTimeMillis() / 1000);
}
public default boolean isExpired() {
return secondsUntilExpiration() < 0;
}
public default void onBeforeExpire(Player player, int remainingMinutes) {
}
public void onExpire(Player player);
public default boolean canExpireNow() {
return true;
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |