Read player packets

Discussion in 'Spigot Plugin Development' started by ykpon, Jun 19, 2015.

  1. Hi guys. How can I read the packets coming from the players on the server. I do not mean TCP traffic, but about the game data.
    Absolutely all of the data. Thanks.
     
    • Agree Agree x 3
  2. yes:
    [​IMG]
     
    • Useful Useful x 1
    • Informative Informative x 1
  3. Hi again, guys.
    I use command "packet add client". In console i see:
    Code (Text):
    [ProtocolLib] Received PacketHandshakingInSetProtocol[0, legacy: 2] from ykpon[/123.456.78.9:4639]
    How do I get the name and address of this particular line from my plugin?
     
  4. use /minecraft:netstat to see the number of packets
     
  5. Tux

    Tux

    You should create a plugin that hooks into ProtocolLib.
     
  6. A function can not tell?