Closed luisnarquel closed 10 years ago
Hmm, could you reproduce the bug will debug Level.ALL? I'd like to see what the server has sent you to cause it. Also could you show me your code in 'onClientJoin'.
Ok never mind.
Yesterday i ended up deleting the code that i had done since it wasn't too much, and when i re-wrote it today to send you the trace it started working.
Strange since i think i did it the same way.
Thanks for your help anyway ;)
Hi
Great Api. I'm trying to do a bot and it's been very helpful. I'm trying to pass some information when a user joins the server to another class, like for example the user nickname.
However when i try to pass anything from the onClientJoin method i get a java.lang.NullPointerException.
This is the trace i get: Exception in thread "Thread-4" java.lang.NullPointerException at Bot.Bot$1.onClientJoin(Bot.java:73) at com.github.theholywaffle.teamspeak3.api.event.ClientJoinEvent.fire(ClientJoinEvent.java:162) at com.github.theholywaffle.teamspeak3.EventManager.fireEvent(EventManager.java:63) at com.github.theholywaffle.teamspeak3.SocketReader$1.run(SocketReader.java:49) at java.lang.Thread.run(Unknown Source)
The error comes from ts3.getEventManager().fireEvent(arr[0],arr[1]);
Could you take a look and see why this happens?
Thanks