public static void PacketReceive(PacketReceiveEvent packetReceiveEvent) { foreach (Listener listener in listeners) { listener.PacketReceive(packetReceiveEvent); } }
public static void HandlePacket(Packet packet) { if (packet.isCancelled()) { return; } PacketReceiveEvent ev = new PacketReceiveEvent(packet); EventHandler.PacketReceive(ev); }
public virtual void PacketReceive(PacketReceiveEvent packetReceiveEvent) { }