These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API
createChannel, you get back the ID of the new channel. We'll need that one later, so store it in a variable.
getClients()to get a list of all clients on the server. From that list, remove all clients that are not in the channel you're looking for. With Java 8 there's a new method called
removeIfin collection classes, which does this in one step.
moveClientswith the IDs of the clients and the ID of the channel :D
extends TS3EventAdapterinstead of
implements TS3Listener. That just keeps you from having to have empty method bodies for every event type (including the ones that don't even interest you)
addTS3Listenerswith your event listener and
registerAllEventsfor step 2
Hmm let me rephrase my questions perhaps. My basic goal is let users input info to my bot and let bot output it in another format.
Something like this:
User21: 29 DWF
User82: 123 RDI
User5: 100 ELM
and then bot would read all those inputs and output in format like this lets say:
Of course there would be more numbers depending how many users write their info to the chat box
onTextMessage. After that, you'll also need some sort of data structure to store these numbers internally. And finally you'll want to have some method that prints the content of these data structures, so you'll also need
First of all, copying files is almost always the wrong thing to do. Secondly, I don't recall there being a file called
EventListener. Are you sure you're not mistaken?
onTextMessageand instead of printing your messages to System.out you'll need to use