public void Send(PacketWriter p) { byte[] data = p.ToArray(); Packet packet = new Packet(data, p.Length); PacketSended.Raise(packet); if (!packet.Filter) { Send(data); } }
public void Send(PacketWriter p) { byte[] data = p.ToArray(); Packet packet = new Packet(data, p.Length); if (Plugin.ProcessSendPacket(data, packet.Length)) { PacketSended.Raise(packet); Send(data); } }
public void Send(PacketWriter p) { byte[] data = p.ToArray(); Packet packet = new Packet(data, p.Length); //if (Engine.Server.IsConnected) // Engine.Server.SendToPlugin(data, data.Length, p.IsDynamic, true); if (Plugin.ProcessSendPacket(data, packet.Length)) { PacketSended.Raise(packet); Send(data); } }