[INACTIVE][ADMIN/DEV] TCP interface for Bukkit - v1.2 [617]

Discussion in 'Inactive/Unsupported Plugins' started by DerpinLlama, Jan 16, 2011.

     
  1. Offline

    DerpinLlama

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I AM NO LONGER DEVELOPING THIS PLUGIN.
    Anyone who wants to continue are obviously allowed to use my code and start a new thread. Don't forget to give me credit though. :p


    BukkitTcpServer:
    Version: v1.2

    Hai guis.

    I've been working on an interface to connect to Bukkit via things like PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/).
    As hey0 pointed out in another topic, this could theoretically allow any language with a socket API to be used for Bukkit.

    At the moment, clients that are authenticated with the server will receive messages about players chatting, players joining, and players quitting. (Post requests here if you want moar.)

    Place the BukkitTcpServer.jar file into your plugins folder and the properties file into your server's folder. (Remember to change the default password to something else!)
    Then you can download something like PuTTY, connect to your server (port is in the properties file), and type 'pass ' then your password. :)

    Current commands:
    • currenttime <world name>
    • eventtoggle <chat/join/quit>
    • getplayers
    • invadd <player name> <block type> <amount>
    • invprobe <player name>
    • invremove <player name> <slot> <type> <amount>
    • invset <player name> <slot>
    • json [on|off]
    • kick <playername>
    • maxplayers
    • msg <message>
    • pid
    • playercount
    • pm <player name> <message>
    • port
    • quit
    • time <world name> <time - as a string that can be converted to long>
    This plugin was compiled on CraftBukkit build 617 - be careful when using it on other versions.

    You can send donations via Bitcoin to 1CTKB67Cs9mZ6vpDJeanH5Dp8MnEkBrCNp. :)

    Feedback/comments would be nice. :)

    Remember that you're sending your password over plain text with no encryption please.

    Features:
    • My plugin makes cake
    • And eats it
    Jar

    Sauce

    Changelog:
    Version 1.2:
    • Some code for the invset and invadd commands cleaned up, thanks to cyberbobjr.
    • Added command event.
    • Compiled against CraftBukkit #449 (1.1 was against #297)
    • Edit: Now compiled again against #617.
    Version 1.1
    • Currenttime and time commands fixed so they take world name parameters.
    • GPL license applied.
    • Fixed PM command.
    • Updated support for drdanick's Remote Toolkit.
    • Probably some other stuff that I forgot about.
    Version 1.0
    • Now writing to the socket with writeBytes instead of writeUTF. Programs that remove the first two bytes will need to be fixed.
    • Added JSON functionality. The getplayers and invprobe commands will always output JSON info, while the others will need to be changed to JSON outputs using 'json on'.
    • Config file now has options for turning chat/join/quit events on/off.
    Version 0.9
    • Begun changelog because I finally got around to it.
    • Added option to bind to localhost.
    cyberbobjr and MonsieurApple like this.
  2.  
  3. Offline

    ProjectInfinity

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Still unable to log in, tried it on 3 different servers now. And with the same result, connects, password gets sent correctly. Rejected by your plugin, disconnected.
    Code:
    18:15:06 [INFO] [Socket] Listening on port 6790 for incoming connections.
    18:15:12 [INFO] [Socket] New client on IP 192.168.2.1! Thread ID: 0.
    18:15:12 [INFO] [Socket] Sent: "Welcome to Bukkit, please authenticate." to 0.
    18:15:19 [INFO] [Socket] Received: "mypassword" in thread 0.
    18:15:19 [INFO] [Socket] Sent: "ERR Wrong password." to 0.
    18:15:19 [INFO] [Socket] User on 192.168.2.1 failed to authenticate.
    18:15:19 [INFO] [Socket] User on 192.168.2.1 disconnected. (Thread ID was 0)
    
    Running CB #556.
  4. Offline

    cyberbobjr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,
    Can you give the content of your configuration file please ?
  5. Offline

    ProjectInfinity

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    port=6790
    password=mypassword
    bound-to-localhost=false
    send-all-json=false
    event-chat-on-by-default=true
    event-command-on-by-default=true
    event-join-on-by-default=true
    event-quit-on-by-default=true
    
    #If you're not running drdanick's Remote Toolkit plugin, you can ignore these lines:
    remote-toolkit-user=user
    remote-toolkit-pass=pass
    For testing purposes ofc ;)
  6. Offline

    cyberbobjr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry i don't see why this is not working :( maybe a space after "mypassword" ?

    EDIT : Strange, i've the same issue ... no password works at all.
  7. Offline

    THEK

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,

    Using Craftbukkit 556 and im getting this error spamming the console. More so when I try anything from Webukkit:

    Code:
    Telnet shell IO exception: java.net.SocketException: Software cause connection abort: socket write error
    Any ideas what the problem might be?
  8. Offline

    cyberbobjr

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok works, sent "pass mypassword", and it's work
  9. Offline

    darkwarriors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    can u update for 617 cb version?

    Code:
    2011-04-04 02:15:34 [SEVERE] Nag author: '<NoAuthorGiven>' of 'BukkitTcpServer' about the following: onPlayerJoin has been replaced with a new signature, (P$
  10. Offline

    MJRamon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yup, any updates for 617 please? :rolleyes:
  11. Offline

    DerpinLlama

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Alright, try now.
  12. Offline

    Revenge

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Seems to work =) Thank you!
  13. Offline

    Kahl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    04:07:28 [SEVERE] Nag author: '<NoAuthorGiven>' of 'BukkitTcpServer' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
    It told me too :p
  14. Offline

    datLicht

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    15:36:27 [INFO] [Socket] User on 127.0.0.1 authenticated!
    15:36:27 [INFO] [Socket] Sent: "Authenticated!" to 31.
    15:36:28 [INFO] [Socket] Received: "invprobe datLicht" in thread 31.
    15:36:28 [SEVERE] Exception in thread "Thread-56"
    15:36:28 [SEVERE] java.lang.NullPointerException
    15:36:28 [SEVERE]       at derp.llama.tcp.Client.run(Client.java:318)
    
    any Idea whats wrong??? Can't edit inventories... :(
  15. Offline

    Kahl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is this working for 670?
  16. Offline

    gamerpaddy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I too :(
  17. Offline

    pbgben

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i cant ether, i have sent a message to the author.
  18. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Don't use a plus sign in the version tag. If you really need to use more versions, use [X-Y] or [X,Y].
  19. Offline

    DerpinLlama

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Plus sign removed. Going to investigate the errors posted now.
  20. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    considered inactive
  21. Offline

    Token48

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hello,
    Sorry for my English, I'm very bad (I am French). I allowed myself to make the changes necessary to use this plugin with version 767 of Bukki. Here is the result. I should mention that I started in Java and I proceed by trial and error. the plugin works correctly with me (I think:)).
    I add a command that gives the version of the plugin.
    version returns the version of the plugin.
    Here have fun with.
  22. Offline

    dragonhib

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah !! cool :D works great for me.. Thanks !!
  23. Offline

    Kahl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Will this work with 766 or have changes been made in the 767?
  24. Offline

    dragonhib

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    works for both, and probably the last RB (798)
  25. Offline

    Kahl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Working with 818? Or is there a better solution now?
  26. Offline

    turtledude01

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If there is a better plugin out there that works with minecraft and bukkit 1.3.2 then please tell me, i cant find one that works!! (cause then i wont continue what im doing) I an thinking of picking this plugin up.....I have gotten most of the cource code fixed but theres a few things that i cant figure out. If anyone wants to help me please pm me!

Share This Page