Exemplo n.º 1
0
 /** 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);
   }
 }
Exemplo n.º 2
0
 /** 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);
   }
 }