/** Queues {@code player} for logout on the next tick. */ public void queueLogout(Player player) { if (player.getState() == EntityState.ACTIVE && !logouts.contains(player)) { logouts.add(player); } }
/** Queues {@code player} for login on the next tick. */ public void queueLogin(Player player) { if (player.getState() == EntityState.IDLE && !logins.contains(player)) { logins.add(player); } }