public Player pGet(Player player){ for(PlayerInfo pi:al){ if (player.getPlayer().getName() == pi.name){ return (Player) pi; } }