public static void Sorry(this Socket connection, string message) { var builder = new PacketBuilder(Send.Sorry); builder.AddString(message); builder.Send(connection); }
/// <summary> /// Message of the day has to be followed by either a "sorry" or the character list, otherwise the client gets stuck. /// </summary> public static void MotD(this Socket connection, ushort id, string message) { var builder = new PacketBuilder(Send.MotD); builder.AddString($"+{id}\n{message}"); builder.Send(connection); }