These are chat archives for TheHolyWaffle/TeamSpeak-3-Java-API

30th
Nov 2017
JenkePlays
@JenkePlays_twitter
Nov 30 2017 16:37
Hey, How can I get the clientUID in the ClientLeaveEvent?
Roger Baumgartner
@rogermb
Nov 30 2017 16:38
You can't. TS3 only sends you the client ID
JenkePlays
@JenkePlays_twitter
Nov 30 2017 16:38
Also it doesnt work?
Roger Baumgartner
@rogermb
Nov 30 2017 16:38
You'll have to save a client's UId, for example in a (Hash)Map that maps from client ID to UId

Also it doesnt work?

What doesn't work?

JenkePlays
@JenkePlays_twitter
Nov 30 2017 16:39
To get the clientUID
I have tried this:
Client c = api.getClientInfo(e.getClientId());
Roger Baumgartner
@rogermb
Nov 30 2017 16:39
Think about what you're trying to do
getClientInfo only works on clients that are online
When you get a ClientLeaveEvent, the client has left the server
JenkePlays
@JenkePlays_twitter
Nov 30 2017 16:51
Thank you its works :D