[MISC] BukkitSpeak 0.22 - Connect Minecraft and Teamspeak3 [1000]

Discussion in 'Inactive/Unsupported Plugins' started by but2002, Jul 16, 2011.

  1. Offline

    but2002

    BukkitSpeak - Show Teamspeak actions in Minecraft & connect the chats
    Version: v0.20

    This plugin will display Teamspeak 3 server joins, quits and messages in Minecraft.

    Features:
    • Display Teamspeak joins in Minecraft
    • Display Teamspeak quits in Minecraft
    • Display Teamspeak (server-wide) messages in Minecraft
    • Fully customizable messages - check the Wiki for information on what variables you can use
    • Colour support in messages! Use $[colourcode] (e.g. $2) in your messages
    Download

    Remember to adjust the config.yml!!

    ConfigInformationHelp (open)

    msg_join: '%client_nickname% has joined TeamSpeak' #Custom Message for Join
    msg_quit: '%client_nickname% has quit TeamSpeak' #Custom Message for Quit
    msg_servermsg: '[TS][Server][%client_nickname%] %msg%' #Custom Message for Server-Wide message
    queryPort: '10011' #Default port for query information (Usually is 10011)

    serverPort: '9987' #Default port for the teamspeak itself (May vary)
    serverAdmin: serveradmin #Get this by going to Tools --> ServerQuery Login
    serverPass: serverpass #Get this by going to Tools --> ServerQuery Login
    ip: hostname.example.com #The hostname / IP Address to your TeamSpeak server


    Quick install:
    Code:
    wget http://dl.dropbox.com/u/1103639/BukkitSpeak.zip &&  unzip BukkitSpeak.zip && rm BukkitSpeak.zip && echo  'Important: Adjust ServerIP, ports, and serverAdmin information in  BukkitSpeak/config.yml'
    [​IMG]

    Changelog:
    Version 0.22
    • General Bug-Fixes. Now ignores query clients.
    Version 0.21
    • Re-added chat color, and filtered "Unknown from"
    Version 0.20
    • Updated to use the now-required login information.
    Version 0.16
    • filter joins/leavs starting with "Unknown from"
    Version 0.15
    • colour support (thanks to Binaryclock)
    Version 0.14
    • added connecting via hostname
    • changed virtualServerID to serverPort; you must now use your server's port instead of ID
    Version 0.13
    • fixed high CPU usage
    Version 0.12
    • improved keepAlive
    Version 0.11
    • fixed the Teamspeak server disconnects
    Version 0.1
    • Initial release
    Original thread here: http://forums.bukkit.org/threads/mi...nnect-minecraft-and-teamspeak3-531-764.10430/
     
  2. Offline

    timwilldude

    Wow you reply fast.
    But no luck :(
     
  3. Offline

    but2002

    Show me your updated config.
     
  4. Offline

    timwilldude

    msg_join: '%client_nickname% has joined TeamSpeak'
    msg_quit: '%client_nickname% has quit TeamSpeak'
    msg_servermsg: '[TS3 Server][%client_nickname%] %msg%'
    queryPort: '20074'
    serverPort: '9155'
    serverAdmin: 926306a
    serverPass: *******
    ip: *******.*******.com
     
  5. Offline

    but2002

    Hmm. I've started a private conversation with you.
     
  6. Offline

    blackbinary

    i have to report that this filter does not work for me.
    [​IMG]

    i use the last version of bukkitspeak and bukkit RB #1000

    i hope you can fix that. I am grateful for your efforts. :)
     
  7. Offline

    but2002

    When I brought this up to date, I assumed that the original author's GitHub was up to date, and only fixed what I knew to be the problem. I'll have to work on re-adding certain missing features.

    Version 0.21 released

    Version 0.22 released.
    Now ignores query clients like @blackbinary and @pcgames3112 suggested.

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

    pcgames3112

    Thank you for this Query-Filter! This plugin is now nearly perfect, but I've three feature requests/bug reports.
    1. Color doesn't work in msg_servermsg(the string '[$aTS3$f]$e%client_nickname%:$f %msg%' gets parsed without color)
    2. Special chars ('ÄÖÜ') are shwon ingame as '%'
    3. Could you please add optional channel hooks for chat? My players aren't allowed to write into the serverchat in TS, but it would be cool to bridge channel-chats.
    Example Config:
    Code:
    msg_channelmsg: '[TS3][%channel_name%][%client_nickname%]: %msg%'
    #comma-seperated
    hooked_channel_ids: 1234, 4321, 1122
     
  9. Offline

    Dec64

    Awesome :) thanks for updating this plugin, works like a charm.
     
  10. Offline

    but2002

    Right now it's ignoring colors from server messages because when someone tries to use a $ in chat it crashed the plugin (It STILL does) and I'm looking into it.

    I'll also see about doing channel chat, but it's one way, not two way so it's usefulness is quite limited.
     
  11. Offline

    pcgames3112

    I'm not very good into TeamSpeak Querys, but isn't there a command called 'sendmessage'? I couldn't get it to work on telnet, so. :p I got everytime a permission denied error when I tried it, even after first using login. (Only with the help of your code I learned how to login into the Query)

    But I've to say it again, you're doing really good work on this plugin :D
     
  12. Offline

    but2002

    Put credit where credit is due. That part of the code was programmed by the original author, @greycap
     
  13. Offline

    A_Polish_dog

    this took me forever to configure XD
    after awhile i figured out how simple it was
    thanks for this awesome plugin =P
     
  14. Offline

    nFamous

    First of all, thanks for this great plugin! It makes the combination of Minecraft and TeamSpeak a lot easier.

    I discovered one bug so far: I configured everything and it works without any problems, as far as I start the Minecraft server after the Teamspeak server.
    If I do this the other way round, the log gives me a bunch of errors and I assume that this is because BukkitSpeak can't connect to my Teamspeak server, because it is not running obviously.

    This is my config.yml:
    Code:
    msg_join: '%client_nickname% hat TeamSpeak betreten!'
    msg_quit: '%client_nickname% hat TeamSpeak verlassen.'
    msg_servermsg: '[TS][Server][%client_nickname%] %msg%'
    queryPort: '10011'
    serverPort: '9987'
    serverAdmin: 'svrquery'
    serverPass: '<password>'
    ip: 'localhost'
    And this is the startup log I get:
    server.log (open)
    Code:
    2011-07-20 23:42:03 [INFO] Starting minecraft server version Beta 1.7.3
    2011-07-20 23:42:03 [INFO] Loading properties
    2011-07-20 23:42:03 [INFO] Starting Minecraft server on 192.168.1.16:25565
    2011-07-20 23:42:03 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-945-g73697a4-b1000jnks (MC: 1.7.3)
    2011-07-20 23:42:03 [INFO] [Permissions] (Yeti) was initialized.
    2011-07-20 23:42:03 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    2011-07-20 23:42:03 [INFO] Preparing level "world"
    2011-07-20 23:42:03 [INFO] Preparing start region for level 0 (Seed: -9077580029301646418)
    2011-07-20 23:42:03 [INFO] Preparing start region for level 1 (Seed: -9077580029301646418)
    2011-07-20 23:42:04 [SEVERE] java.net.ConnectException: Connection refused: connect
    2011-07-20 23:42:04 [SEVERE] java.net.ConnectException: Connection refused: connect
    2011-07-20 23:42:04 [SEVERE]     at java.net.PlainSocketImpl.socketConnect(Native Method)
    2011-07-20 23:42:04 [SEVERE]     at java.net.PlainSocketImpl.doConnect(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.PlainSocketImpl.connect(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.SocksSocketImpl.connect(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.Socket.connect(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.Socket.<init>(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at java.net.Socket.<init>(Unknown Source)
    2011-07-20 23:42:04 [SEVERE]     at net.but2002.minecraft.BukkitSpeak.TeamspeakHandler.connect(TeamspeakHandler.java:71)
    2011-07-20 23:42:04 [SEVERE]     at net.but2002.minecraft.BukkitSpeak.TeamspeakHandler.<init>(TeamspeakHandler.java:38)
    2011-07-20 23:42:04 [SEVERE]     at net.but2002.minecraft.BukkitSpeak.BukkitSpeak.onEnable(BukkitSpeak.java:42)
    2011-07-20 23:42:04 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-20 23:42:04 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    2011-07-20 23:42:04 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    2011-07-20 23:42:04 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    2011-07-20 23:42:04 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    2011-07-20 23:42:04 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-20 23:42:04 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-20 23:42:04 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-20 23:42:04 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-20 23:42:04 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-20 23:42:04 [INFO] BukkitSpeak Version: 0.22 enabled.
    2011-07-20 23:42:04 [INFO] [BukkitVote]: Loaded BukkitVote 0.4
    2011-07-20 23:42:04 [SEVERE] java.lang.NullPointerException
    2011-07-20 23:42:04 [SEVERE] java.lang.NullPointerException
    2011-07-20 23:42:04 [SEVERE]     at net.but2002.minecraft.BukkitSpeak.TeamspeakHandler.run(TeamspeakHandler.java:49)
    2011-07-20 23:42:04 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-07-20 23:42:04 [INFO] Using locale de_DE
    2011-07-20 23:42:04 [INFO] Plugin Essentials Version 2.5.2 geladen, erstellt von [Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo, ceulemans, Xeology], übersetzt von snowleo
    2011-07-20 23:42:04 [INFO] [NightLight] NightLight version null is using permissions.
    2011-07-20 23:42:04 [INFO] [NightLight] NightLight version 1.1 enabled successfully.
    2011-07-20 23:42:04 [INFO] Vanilla version 0.1 is enabled!
    2011-07-20 23:42:05 [INFO] [iChat] Found Permissions (v3.1.6)
    2011-07-20 23:42:05 [INFO] iChat (v2.3.3-p3) enabled
    2011-07-20 23:42:05 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-07-20 23:42:05 [INFO] Done (3,576s)! For help, type "help" or "?"

    Do you consider bypassing this by something like
    Code:
    [INFO]  BukkitSpeak: Could not connect to the specified server 'localhost'
    this? That would be nice.

    Thanks in advance and keep this plugin up,
    nFamous
     
  15. Offline

    blackbinary

    @but2002 REALY great Work! thats Nice! Now it Works just fine.

    @pcgames3112 i agree with you in 3. even if I do not think this feature is very important, it would be a nice thing!

    @but2002 Maybe helps JTS3ServerMod in Temat TeamSpeak and Java. Anyway, I can not say with certainty that the source code is free. I use this Software for my Server. This JavaApp can many things with Querys.

    I hops it helps :)

    Keep up your great Work ! Thanks for everything
     
  16. Offline

    WizardCM

    Question. Would you be able to add text chat from Channels too? Mainly because guests and normal can't chat in server chat.
     
  17. Offline

    but2002

    Let me ask this. Why would you want chat from TS to show up on the Minecraft server? It wouldn't be very easy to make it two way, and doesn't seem to have much purpose to me.
     
  18. Offline

    WizardCM

    Unification? For example, if someone disconnects on my server because of an error and can't get back in, they could use TeamSpeak to tell the administrators about the error to try and get it fixed.

    Edit: Also, coloured server messages don't seem to work (msg_servermsg).
     
  19. Offline

    but2002

    Seems like a legit reason. I'll look into adding this as a feature.
    now about server messages being colored, I'll need to re-add that, but I may have to completely remove it altogether, I just need to figure out what's causing the bug. If you put a color code in the config file, it works just fine, however if a $ sign is placed in the server chat it crashes and requires a plugin reload for it to work again.

    EDIT: As of right now, it's disabled even for the config file.
     
  20. Offline

    SkullM4sher

    Thank you so much for the update !
     
  21. Offline

    Sh00ck

    Thanks for the Update :D
     
  22. Offline

    Jobsti

    Soooo... updated to your newest Version and the TS3 Server.
    Nothing works (no Chat no joinmessages), but no errormessages.

    Ip from the mc server is on query-whitelist.
    TSviewer works.
     
  23. Offline

    but2002

    Could you post your config file?
     
  24. Offline

    Jobsti

    Same Config works before updating both.

    Code:
    msg_join: '§6%client_nickname% §7ist nun im TeamSpeak'
    msg_quit: '§6%client_nickname% §7verlässt TeamSpeak'
    msg_servermsg: '§7[§8TS3-Chat§7]§8%client_nickname%§7: §7%msg%'
    queryPort: '10011'
    serverPort: '9987'
    serverAdmin: *******
    serverPass: *******
    ip: 192.168.1.102
    Format UTF-8 w/o BOM, works with 'ä" ;)
     
  25. Offline

    but2002

    Could I see your server.log then?
     
  26. Offline

    Jobsti

    Nothing from your plugin, no errors, nothing.
    On serverstart only "2011-07-27 16:58:41 [INFO] BukkitSpeak Version: 0.22 enabled."
    On restart/stop "2011-07-27 16:58:16 [INFO] BukkitSpeak Version: 0.22 disabled."
     
  27. Offline

    but2002

    Is the serverAdmin and the serverPass correctly defined in the config? Where did you get the information from. Also, where is the teamspeak server located relative to the server? You've specified a local IP.
     
  28. Offline

    Jobsti

    TS3 on the RC2 VM on ESX
    MC on Linux VM, same ESX.
    Both Local, different IPs per VM.

    Name and pwd generated as serveradmin on TS3.
    Same configs and system worked before updating your plugin and the ts3 server.
    TS3 did't delete any userdata on update.
     
  29. Offline

    but2002

    I'm not quite sure what could be going wrong then. I'll see about writing a debug version for you. I've got a -LOT- on my plate so I don't know how soon that may be.
     
  30. Offline

    Jobsti

    Thanks! ;)

    Installed previous BukkitSpeakversion, it works, new version, not.

    Previous version installed (0.21), but create a new user/pwd, works.
    Update to 0.22, works! weird ;)
     
  31. Offline

    WizardCM

    Would love a game command to check who's online on the TeamSpeak server (if it's possible, of course).
     

Share This Page