Custom Client Connection

Discussion in 'Plugin Development' started by RazorFlint, Jun 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    RazorFlint

    I've made a custom client for my server and need to know what I need for the server to only accept people with the client, else displaying a message what they need to download.

    And suggestions would help a bunch, thanks! :p
     
  2. how can the server see you have an custom client?
     
  3. Offline

    RazorFlint

    I don't know, that's what I'm asking. But If the spout plugin and client can do It then the plugin might request an id from the client. (maybe)
     
  4. Offline

    KawaiiNeko

    I'm no developer and i know nothing about coding, but uuh...
    Wouldn't it be possible for the server to try sending a command to the client (one that only your client can read), and then make your client reply to that command.
    And if it doesn't get any response it will kick the player?
     
  5. they probably just send a simple packet and if the client answers on that packet, he obviously uses the custom client.
     
  6. Offline

    RazorFlint

    Anyone got any code examples? :p
     
  7. Offline

    LucasEmanuel

    How did you make a client without the knowledge of how a server and a client communicate?
     
  8. Offline

    nala3

    thats a good question o.o
     
  9. Offline

    RazorFlint

    Well your jumping to conclusions, I know how the client connects to the server. I could of reworded this better, I'm looking for a code example.
     
  10. Offline

    LucasEmanuel

    Well in pseudo you could do something like this.

    1. A client connects to your server.
    2. Your custom plugin sends a custom packet to the client that only your clientversion can understand and respond to.
    3. If no respond on your packet within, lets say 10 ticks, cancel the join event or kick the player.
     
  11. What about using plugin channels that was recnetly added? I have no idea how to use them though but I know you can use

    player.getListeningPlugonChanels()

    And if the player is listening on that channel then allow the player in.
     
Thread Status:
Not open for further replies.

Share This Page