/// <summary> /// Provides an easy means of routing chat messages between players /// </summary> static public void Player_RouteChat(Player p, SC_PrivateChat <Data.Database> pkt) { //Formulate the chat notification! SC_Chat schat = new SC_Chat(); schat.chatType = Chat_Type.PrivateChat; schat.message = pkt.message; schat.from = pkt.from; //Go! p._client.sendReliable(schat); }
/// <summary> /// Provides an easy means of routing chat messages between players /// </summary> static public void Player_RouteChat(Player p, SC_PrivateChat <Data.Database> pkt) { //We ignoring them? if (!String.IsNullOrWhiteSpace(pkt.from) && p._accountIgnore.ContainsKey(pkt.from)) { return; } //Formulate the chat notification! SC_Chat schat = new SC_Chat(); schat.chatType = Chat_Type.PrivateChat; schat.message = pkt.message; schat.from = pkt.from; //Go! p._client.sendReliable(schat); }