Packets packets and more Packets come and discuss

Discussion in 'Plugin Development' started by Leo38638, Aug 25, 2015.

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

    Leo38638

    Well, hello I have being using packets and nms for a long time but really, I got bored so I get into it but there's so much things I don't understand like PacketPlayIn packets and PacketPlayOutCustomPaylod whats a custom Paylod please don't say: "Use protocollib" or any other lib, I wan't to learn and learning isn't bad, actually If I learn how to use all of it I will try to make a Tut :)
    Thnxs.

    PD: I don't know alot of netty so please try to be especific :) thnxs
     
  2. Offline

    mythbusterma

    @Leo38638

    So what are you trying to accomplish, exactly?

    The Packets are datagrams that are sent to and from the client. They have an interesting naming convention in Bukkit, namely:

    Packet<time><direction><name>

    Where time is when in the connection sequence it's sent (most packets are "play" but some are "status" or "login"). Direction is either "in" or "out" and it refers to whether it goes to or comes from the client. Then the name is just what the packet represents. A full list of every packet the server uses and its contents can be found here: wiki.vg/Protocol
     
  3. Offline

    Leo38638

    I know how packets works, what I mean is advanced packets use like Injectors or intercept packets something like protocollib but whithout protocollib
     
  4. Offline

    mine-care

    @Leo38638 I am quite unsure of what the question is,
    Is it how to use in packets? is it what Custom payload is?
    is it how to packetsniff without a lib?

    Well a brief answer for each of the above would be:
    1. In packets are sent from the client to the server sending info about the client's actions ect.
    2. Custom payload: http://wiki.vg/Protocol#Plugin_Message
    3. injectors just get in the stream (channel) used by the server to comunicate with the client and pick up outgoinf and incoming packets to be processed and then let them back in the 'stream'. This is unsafe when inexperienced people mess with it.
     
  5. Offline

    Leo38638

    Yeah I want to learn to inject data in the stream without a lib and also listen to it without any premade class
     
  6. Offline

    mythbusterma

    mine-care likes this.
Thread Status:
Not open for further replies.

Share This Page