I am trying to develop a TS3 Bot in Java with this API: https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API
I have a list with all Server Groups that a Client have:
List<ServerGroup> playerGroups = TS3Bot.api.getServerGroupsByClientId(player.clientdbID);
And now I check if the List contains a Group:
if(!playerGroups.contains(TS3Bot.botGroups.get(1))){...}
And the result is false. I am 100% sure that this List contains the ServerGroup.
Already checked it out with Sysouts.
Here is the Link to the ServerGroup Class: https://github.com/TheHolyWaffle/TeamSpeak-3-Java-API/blob/master/src/main/java/com/github/theholywaffle/teamspeak3/api/wrapper/ServerGroup.java
and this is just the ServerGroup Object.toString().
{iconid=0, savedb=1, sortid=0, name=Test 2, n_member_removep=100, sgid=98, type=1, n_member_addp=100, namemode=0, n_modifyp=100}
See Question&Answers more detail:os