TheHolyWaffle / TeamSpeak-3-Java-API

A Java wrapper of TeamSpeak's 3 server query API.
MIT License
306 stars 107 forks source link

Bot connects without nickname #313

Open DanielAlves123 opened 5 years ago

DanielAlves123 commented 5 years ago

Server logs:

<23:15:42> "serveradmin from ip:port" connected to channel "channel" <23:15:42> "serveradmin from ip:port" is now known as "nickname" Private message: <23:15:42> "serveradmin from ip:port" rejoined chat. It should allow bot to connect already with set nickname. Maybe it works only if you have enabled 'Show ServerQuery Clients' option.
rogermb commented 5 years ago

Hi!

This has already been implemented in version 1.2.0: The selectVirtualServerById and selectVirtualServerByPort methods in TS3Api now have overloads with an additional nickname parameter that allow you to join a virtual server with the specified nickname already set. An example:

api.selectVirtualServerByPort(9987, "SuperBot");

Hope this helps!