Packets

Discussion in 'Plugin Development' started by nbrandwine, May 13, 2015.

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

    nbrandwine

    Hello,

    Would it be possible for a plugin to send a client a custom packet to request their jar / version information?
    I was thinking of using ProtocolLib but I wouldn't know where to start.

    Thanks.
     
  2. Offline

    Raydond123

  3. Offline

    nbrandwine

  4. You cán indeed check for the client's MC version, like Raydond said, but you can't check the version name, and even if you wrote a custom packet and sent it to the client, it won't work: If a client recieves an unknown packet it crashes.
     
  5. Offline

    nbrandwine

    Makes more sense. Thanks.
     
  6. Offline

    Agentleader1

    CraftPlayer > EntityPlayer > Player Connection > Network Handler > Get Version

    1.8 is 47.
     
  7. Offline

    nbrandwine

    I see, thanks. I was originally looking for a way to get the name of the jar.
     
  8. Offline

    Agentleader1

  9. Offline

    nbrandwine

    The client jar they connect with, like if someone joins it would say, "<Player> has joined, connecting with 'minecraft-hacked-jar-183.jar'", etc.
     
  10. Offline

    Agentleader1

  11. Offline

    mythbusterma

    @nbrandwine

    wiki.vg/protocol

    There is a list of every packet you can send, where on there is "PacketPlayInClientMCClient" or something of that nature?

    Even then, this would be a hilariously bad check, because all a hacked client has to do is respond with the vanilla MC packet.
     
  12. Offline

    nbrandwine

    I've been there before, thanks anyway.

    I just realized that...

    Alright, thanks.
     
Thread Status:
Not open for further replies.

Share This Page