client.getLocalPlayer().setTeam(team); client.sendPlayerInfo();
if (client.getLocalPlayer().getTeam() != team) { client.getLocalPlayer().setTeam(team); client.sendPlayerInfo(); }
    public void changeTeam(int team) {        client.getLocalPlayer().setTeam(team);        client.sendPlayerInfo();    }