boolean playerIsOp = MinecraftServer.getServer().getConfigurationManager().func_152596_g(player.getGameProfile());
Team[] allAvailableTeams = new Team[availableTeams.length + (playerIsOp ? 2 : 1)];
System.arraycopy(availableTeams, 0, allAvailableTeams, 0, availableTeams.length);
allAvailableTeams[availableTeams.length] = Team.spectators;
sendPacketToPlayer(new PacketTeamSelect(allAvailableTeams, info), player);
}