And do you have client-channelID implemented in your Bot or i must write it ?
The client list vector of the bot contains the channel id, but you have to create the list to store the last channel ids of a client.
Method
checkTS3Clients() in the for loop ("for (HashMap<String, String> clientInfo : clientList)"):
clientInfo.get("cid")
to get the current channel id.
You can use the int variable
clientID to track the client id.
Just a quick idea, maybe use something like:
Vector<HashMap<Integer, Integer>> clientChannelInfo = new Vector<HashMap<Integer, Integer>>();
The Vector has 12 elements (every check one element). The HashMap contains to every client id the channel id.
Every check insert a new element at position 0 to the vector and trim that vector to the limit you want to check back. My example is 12.
Then use a loop to check if that channel id is changing for a client to often and punish them.