public static List<Player> getNearbyPlayers(Location l, int range) {
        List<Player> players = new ArrayList<Player>();
        for (Entity e : getNearbyEntities(l, range)) {
            if (e instanceof Player) {
                players.add((Player) e);
            }
        }
        return players;
    }