Modifying/Removing packet

Discussion in 'Plugin Development' started by xGhOsTkiLLeRx, Mar 26, 2012.

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

    xGhOsTkiLLeRx

    Hello,

    first of all, I know how to create a new packet. Doesn't work in my case.

    Problem:

    I need a way to get the packet, before it's sent to all players.
    Maybe I can listen to it on player pre login event?

    Other way could be the removing of a packet and to send a new one to all players.

    NMS code is okay for me.

    Maybe somebody knows a way :)
    (Otherwise I need the SpoutPacketListener...)
     
  2. Offline

    nisovin

    There's no way to intercept a packet without modifying the server itself. You'll have to use Spout if you want to do this (it uses a clever trick to do this, but only one plugin on a server can use that clever trick or everything will break).
     
  3. Offline

    xGhOsTkiLLeRx

    Alright mate, thanks for the quick answer :)
     
Thread Status:
Not open for further replies.

Share This Page