private void respawnPlayer() {
        long time = System.currentTimeMillis();
        try {
            for (Player p : players) {
                if (p.getTimeDied() != 0 && time - p.getTimeDied() > RESPAWN_TIME) {
                    p.respawn();
                    Server.sendToAll(5, p.getName());
                }
            }
        } catch (NullPointerException e) {
            e.getMessage();
        } catch (ConcurrentModificationException e) {
            e.getMessage();
        }
    }