[MISC] BukkitSpeak - Connect Minecraft and Teamspeak3 [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Firedroide, Mar 18, 2012.

  1. Offline


    No join message just ends up being blank
  2. Offline


    Well, you've already found out what the problem is:
    For some reason, you're banned on this TeamSpeak server.

    If you're an admin on this server, you should be able to unban the ip of the Minecraft server.

    Allright, now I really don't know anymore what could be wrong. :confused:

    Also I'll set the plugin up so if the message is blank, nothing will be sent to the TS server.
    But that doesn't fix your double-message problem...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 24, 2016
  3. Offline


    I cant believe no one else has that problem im sure someone must also be using the default channel. Is there something more i could do for you to get better analysis like a debug report?
  4. Offline


    Yes, it would be very nice if you could try the following:
    - Set the ChannelID: to the actuall channel id instead of 0.
    - Set the ChannelID: to the id of another channel on your server and test, if there still are any double messages.
    - And report me, how many messages you got from that.
  5. Offline


    Its not on 0 its on 1 but i will try a different channel

    -_- i feel dumb as hell i guess from the previous fix i tried it was still on 0 i changed it to 1. No more double messages

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 24, 2016
  6. Offline


    is there a fix yet. for this problem. i just set this up last night on my new TS server. and i'm getting this problem and i know i put the query password in right.
  7. Offline


    I get this message
    17:06:19 [SEVERE] [BukkitSpeak] (Exception connectTS3Query(): java.lang.NullPointerException)
    I know the server query works as i have tested with putty.
  8. Offline


    Set Debug: in the config to true, do a complete server reload and send me a complete server log, or at least a complete stack trace.
    The config could also be useful to find out what the problem is.
    Also, ensure that your version of BukkitSpeak is up-to-date.

    Unban yourself from the TeamSpeak server.
    Enable ServerQueries on the TeamSpeak server, if it isn't already.
    Make sure, the ServerQuery has the correct permissions group.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 24, 2016
  9. Offline


    ServerQuery is enabled, and as far as i know its set to the admins group. but i still get the can't communicate with TS server.
  10. Offline


    Are you sure that the QueryPort and the IP are correct?
  11. Offline


    ip and query port are correct

    2012-06-24 01:27:11 [SEVERE] [BukkitSpeak] Could not connect to the TS3 server.
    2012-06-24 01:27:11 [SEVERE] [BukkitSpeak] Make sure that the IP and the QueryPort are correct!
    2012-06-24 01:27:11 [SEVERE] [BukkitSpeak] (Exception connectTS3Query(): java.lang.NullPointerException)
    2012-06-24 01:32:13 [SEVERE] Exception in thread "Thread-1451"
    2012-06-24 01:32:13 [SEVERE] java.lang.NullPointerException
    2012-06-24 01:32:13 [SEVERE]    at net.but2002.minecraft.BukkitSpeak.ClientList.asyncUpdateAll(ClientList.java:52)
    2012-06-24 01:32:13 [SEVERE]    at net.but2002.minecraft.BukkitSpeak.ClientList.<init>(ClientList.java:25)
    2012-06-24 01:32:13 [SEVERE]    at net.but2002.minecraft.BukkitSpeak.QueryConnector.run(QueryConnector.java:84)
    2012-06-24 01:32:13 [SEVERE]    at java.lang.Thread.run(Unknown Source)
  12. Offline


    Well, somehow, there's a null pointer exception in the JTS3ServerQuery itself.
    That's the official TeamSpeak API that BukkitSpeak uses to connect to the TS3 Server.

    Please turn on debug in the config and send me the complete stack trace and the created file called
    More information about the debug mode can be found on the GitHub wiki.

    Also, your config.yml could be useful.
  13. Offline


    Hope it's okay to post this feature request here:

    I would love some sort of white-list integration, so that MC users would need to be assigned a particular server-group-ID in ts3 in order to build/move/interact etc.

    The main difficulty with this, of course, is associating the in-game MC account name with the Unique ID in ts3. Currently the only way I have been able to come close to something like this is having people register on my phpbb3 forums and input their Unique ID (then a bot grants them a server group). If you are able to think of a way to overcome this obstacle, I think this would be an awesome addition to an otherwise already awesome plugin!

    Thanks for providing the plugin!
  14. Offline


    Deathmarine and me also had the idea to do some sort of white-list integration, but we never ended up implementing one, just because it's really hard to make sure that you only whitelist the user that should get whitelisted.
    The problem is that CraftBukkit only knows the IP of the client, so if someone joins the TS3 server, BukkitSpeak would have to check if one of the online players has the same or similar IP to the one in TeamSpeak.
    There could also be multiple users using the same IP, what would mess up the system as well.

    And there are so many ways to do that as well, you could
    - add someone to the TS3 whitelist when they join the MC server.
    - add someone to a TS3 permissions group when they join the MC server.
    - whitelist someone on the MC server when they join the TS server.
    - set them to a certain MC permissions group when they join the TS3 server.
    - and so on...

    However, maybe I'll end up adding this in the next update, or maybe I could create a complete new plugin for that.
    I'm afraid of adding this function directly to BukkitSpeak itself, because that's really not what BukkitSpeak is supposed to do and the - in my opinion - alrealy complicated config would get even more crowded with stuff.

    So, I'll definitely think that over, but I can't make any promises.
  15. Offline


    Sorry for the delay, been real busy at work.
    Now the server can connect. I asked my TS3 host to White-List my i.p. ( the server query i.p.) since i host Minecraft on my machine.
    The client enters and stays in ts3 now. It will send to channel when someone enters mincraft and logs in. Only thing it does now is cant read any user ids from teamspeak. and /tsa list is blank. Ill paste some of the info on the Minecraft server console. (If this is an easy fix i apologize for wasting your time, i tried doing a search prior to posting this and didn't find anything.
    23:34:32 [INFO] [BukkitSpeak] Enabling BukkitSpeak v0.53
    23:34:32 [INFO] [BukkitSpeak] enabled.
    23:34:32 [INFO] Server permissions file permissions.yml is empty, ignoring it
    23:34:32 [INFO] Done (1.856s)! For help, type "help" or "?"
    23:34:35 [INFO] [BukkitSpeak] Connected with SID = 798, CID = 24947, CLID = 462
    23:34:35 [WARNING] [BukkitSpeak] Received no information for user id 181. (Async
    23:34:35 [WARNING] [BukkitSpeak] Received no information for user id 462. (Async
    23:34:45 [WARNING] [BukkitSpeak] Received no information for user id 463. (Addin
    23:35:03 [WARNING] [BukkitSpeak] Received no information for user id 181. (Async
    23:35:03 [WARNING] [BukkitSpeak] Received no information for user id 463. (Async
    23:35:03 [WARNING] [BukkitSpeak] Received no information for user id 462. (Async
  16. Offline


    BukkitSpeak uses the Server Query command clientlist to get a list of people who are online, and that seems to work properly. What doesn't work is getting information about the clients by using clientinfo.
    Please make sure that the permissions group for your server query has the following permission set:
    That should actually do the trick, if it doesn't, please tell me.
  17. Offline


    Ok, i did double check if the server query and/or my permissions had the b_client_info_view allowed and able. and it is. Same problem is showing up. I will reboot the servers to see if that helps also will change user and pass for query client to if that is a fix also.

    and it is now working after the reboot. You are amazing catching the b_client_info_view

    I smell a donation in the near future :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 24, 2016
  18. Offline


    is the link broken?
  19. Offline


    Which one do you mean?
    The download link, the link to the wiki or another one?
  20. Offline


    30.06 09:41:18 [Server] SEVERE [BukkitSpeak] (Exception connectTS3Query(): java.net.ConnectException: Connection refused)
    30.06 09:41:18 [Server] SEVERE [BukkitSpeak] Make sure that the IP and the QueryPort are correct!
    30.06 09:41:18 [Server] SEVERE [BukkitSpeak] Could not connect to the TS3 server.

    should work....

    TeamSpeakPort: 9215
    QueryPort: 10011
    QueryUsername: Mime
    QueryPassword: 'i7OLQZ0a'
  21. Offline


    Check if you're whitelisted on the TS server and if you can connect to the Teamspeak server from your minecraft server.
    The TS server could be hidden by a firewall or something like that, or the IP or the QueryPort are incorrect.
  22. Offline


    i see you are hosted at gameservers. I am hosted there as well. You need to open a support ticket and ask them to white list the minecraft server i.p. If you host the minecraft server from your home, you would need to ask them to whitelist your i.p. in that case. Also you want them to allow/grant your admins account to allow "b_client_info_view", if you tell them that, they will fix it for you and you should be up and running. That is what i did and plugin works amazing.
  23. Offline


    Simple terms please
  24. hi
    try to set bukkitspeak and i get this error when listerner try to connect :

    20:29:47 [SEVERE] java.lang.NullPointerException
    20:29:47 [SEVERE]    at de.stefan1200.jts3serverquery.JTS3ServerQuery.connectTS3Query(JTS3ServerQuery.java:525)
    20:29:47 [SEVERE]    at de.stefan1200.jts3serverquery.JTS3ServerQuery.connectTS3Query(JTS3ServerQuery.java:452)
    20:29:47 [SEVERE]    at net.but2002.minecraft.BukkitSpeak.QueryConnector.run(QueryConnector.java:26)
    20:29:47 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    20:29:47 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    20:29:47 [SEVERE] [BukkitSpeak] Could not connect to the TS3 server.
    20:29:47 [SEVERE] [BukkitSpeak] Make sure that the IP and the QueryPort are correct!
    20:29:47 [SEVERE] [BukkitSpeak] (Exception connectTS3Query(): java.lang.NullPointerException)
    IP and QueryPort are good (I see a rapid connect.disconnect from the TS server's log ...
    (reasonmsg=connection lost)

    cant find a solution to this, viewer are allowed on my TS server ...
    help needed ^^

    [edit] oh, server version 3.0.2

    [edit2] here is the log from debugger (JTS3ServerQuery-communication.log file)
    < null
    not so satisfied with this :p

    [edit3] this happen only if username/querypassword are set correctly.
    if unset, then i got the regular 'bad username/password' message.
    with good credential, here come the NPE.
  25. Offline


    Yes, this file actually only helps if there was actually some communication going on between the server and the Query client, ahd this clearly isn't the case here. :rolleyes:

    It seems that the query client just can't connect to the TS server, so you should check if you are white-listed on your TS server and if the TS server is 'visible' from the Bukkit server.
    It could be that the TS server is hidden by a firewall or something like that, or the IP or the QueryPort are just incorrect.

    By the way, are you sure that the client rapidly connects and disconnects? BukkitSpeak should actually only try to connect every 5 minutes.
  26. when i said rapidly connect and disconnect, i was meaning just once. (that's the way i know that credential and config is good.)
    i see the bukkitspeak connection in log, immediatly followed by the disconnect msg.

    btw, trying this from home, with a home hosted server (a copy from my dedicated server) and i get the same behavior.
    (and that is from the same PC i got my TS client on, aka; i've access to the server).

    [edit] while trying, i've seen this in the debug file :

    < error id=3331 msg=flood\sban
    > clientlist
    < null
    > quit
    it seems to be the reason of the disconnection ...

    ok, i will open a ticket to whitelist my server with the hosting company. damn i cant access this file ...
  27. Offline


    Okay, and it seems that your IP got banned for trying to connect too many times while not being whitelisted.
    You should also tell them to unban your IP, if they haven't figured that out already :)
  28. Offline

    The Legendary

    Oh, theres one very serious bug. If you use &k with minecraft chat being sent to the Teamspeaks Server, it'll crash the whole server completely. Then i'd have to restart the server.
  29. Offline


    Thanks a lot for this information, that really is a very serious bug.
    I forgot to replace §k and §m, thus both will catch the server in an endless loop.
    I'll update BukkitSpeak as soon as possible.

    EDIT: Updated :cool:
  30. Offline


    Okay so this morning me and 1 of my players were in game, talking on TS and playing Minecraft. After awhile one of us tried to chat and it appeared in TS but not in game. I got this error from the console. A few chat related plugins i use - Essentials chat, Group Manager, Multiverse, and many many more plugins. I also found this error in the console.
    2012-07-13 08:23:59 [SEVERE] Could not pass event PlayerChatEvent to BukkitSpeak
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:786)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at net.but2002.minecraft.BukkitSpeak.TeamspeakHandler.pushMessage(TeamspeakHandler.java:177)
    at net.but2002.minecraft.BukkitSpeak.TeamspeakHandler.SendTextMessage(TeamspeakHandler.java:181)
    at net.but2002.minecraft.BukkitSpeak.ChatListener.onPlayerChat(ChatListener.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    ... 11 more

    08:44:54 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.5-R4.0-b2222jnks (MC: 1.2.5) (Implementing API version 1.2.5-R4.0)
    if you need more information about the environment just let me know.

Share This Page