/// <summary> /// Sends a message to the player /// </summary> public void SendMessage(string message) { ByteBuffer buffer = new ByteBuffer(Opcodes.Message); foreach (string line in LineWrapper.WrapLines(message)) { buffer.SetPosition(1); buffer.WriteByte(0); buffer.WriteString(line, UseCP437 ? Server.CP437 : Encoding.ASCII); SendRaw(buffer.Data); buffer.SetPosition(0); } }