Example #1
0
 public static void PacketReceive(PacketReceiveEvent packetReceiveEvent)
 {
     foreach (Listener listener in listeners)
     {
         listener.PacketReceive(packetReceiveEvent);
     }
 }
Example #2
0
        public static void HandlePacket(Packet packet)
        {
            if (packet.isCancelled())
            {
                return;
            }

            PacketReceiveEvent ev = new PacketReceiveEvent(packet);

            EventHandler.PacketReceive(ev);
        }
Example #3
0
 public virtual void PacketReceive(PacketReceiveEvent packetReceiveEvent)
 {
 }