onPacket - TheIronG/Nodecraft GitHub Wiki

onPacket(sender, packet)

Packet data:

  • Depends on packet type and sender state

Description

Emitted for any and all packets, even if the server does not have a proper event for them. Can be used to implement protcol features in plugins that the core does not provide

⚠️ **GitHub.com Fallback** ⚠️