Don't set a clan's lastOnline time to Timestamp(0)
Partially reverts f011fdad5f
This commit is contained in:
parent
0a32eed15d
commit
91d5851628
@ -522,8 +522,7 @@ public class ClansGame extends MiniPlugin
|
|||||||
ClanInfo clan = _clans.getClanUtility().getClanByPlayer(event.getPlayer());
|
ClanInfo clan = _clans.getClanUtility().getClanByPlayer(event.getPlayer());
|
||||||
if (clan == null) return;
|
if (clan == null) return;
|
||||||
|
|
||||||
if(!clan.isOnline()) clan.setLastOnline(new Timestamp(System.currentTimeMillis())); //Noone else on
|
clan.setLastOnline(new Timestamp(System.currentTimeMillis()));
|
||||||
else clan.setLastOnline(new Timestamp(0));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
@EventHandler(priority = EventPriority.LOWEST)
|
||||||
|
Loading…
Reference in New Issue
Block a user