// Path: src/simpleserver/lang/Translations.java
// public static String t(String key) {
//   return TranslationsHolder.INSTANCE.get(key);
// }


import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import static simpleserver.lang.Translations.t;
      if (name.startsWith(prefix)) {
        return players.get(name);
      }
    }
    return null;
  }

  public Player findPlayerExact(String name) {
    return players.get(name.toLowerCase());
  }

  public synchronized void removePlayer(Player player) {
    players.remove(player.getName().toLowerCase());
    notifyAll();
  }

  public synchronized void addPlayer(Player player) {
    if (players.size() < server.config.properties.getInt("maxPlayers")) {
      players.put(player.getName().toLowerCase(), player);
    } else {
      Player playerToKick = null;
      for (Player friend : players.values()) {
        if (!((friend.getGroupId() >= player.getGroupId()) || (playerToKick != null)
            && (friend.getConnectedAt() < playerToKick.getConnectedAt())
            && (friend.getGroupId() > playerToKick.getGroupId()))) {
          playerToKick = friend;
        }
      }

      if (playerToKick == null) {
// Path: src/simpleserver/lang/Translations.java
// public static String t(String key) {
//   return TranslationsHolder.INSTANCE.get(key);
// }


// Path: src/simpleserver/PlayerList.java
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import static simpleserver.lang.Translations.t;

      if (name.startsWith(prefix)) {
        return players.get(name);
      }
    }
    return null;
  }

  public Player findPlayerExact(String name) {
    return players.get(name.toLowerCase());
  }

  public synchronized void removePlayer(Player player) {
    players.remove(player.getName().toLowerCase());
    notifyAll();
  }

  public synchronized void addPlayer(Player player) {
    if (players.size() < server.config.properties.getInt("maxPlayers")) {
      players.put(player.getName().toLowerCase(), player);
    } else {
      Player playerToKick = null;
      for (Player friend : players.values()) {
        if (!((friend.getGroupId() >= player.getGroupId()) || (playerToKick != null)
            && (friend.getConnectedAt() < playerToKick.getConnectedAt())
            && (friend.getGroupId() > playerToKick.getGroupId()))) {
          playerToKick = friend;
        }
      }

      if (playerToKick == null) {
        player.kick(t("Sorry, server is full!"));