TheHolyWaffle / TeamSpeak-3-Java-API

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

Beginner Question #6

Closed Xsoltmol closed 10 years ago

Xsoltmol commented 10 years ago

Hi I'm a beginner Java programmer I use one of your example, customize TS3Config object and trying to connect TS server but I have problem:

[DEBUG] [SEVERE] Command use is not answered in time. [DEBUG] [SEVERE] Command clientupdate is not answered in time. [DEBUG] [SEVERE] Command whoami is not answered in time. Exception in thread "main" java.lang.NullPointerException at com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage(TS3Api.java:1176)

Can you tell me what i did wrong?

TheHolyWaffle commented 10 years ago

Are you sure that you are using the correct IP and QueryPort for your TeamSpeak 3 server? Default queryport is 10011 but that may not be the same for you.

TheHolyWaffle commented 10 years ago

I'm sorry. I noticed that I forgot query.connect() in the examples. I'll fix it.