using ODMO.Commons.Writers;
namespace ODMO.Commons.Packets.Chat
{
public class NoticeMessagePacket : PacketWriter
{
private const int PacketNumber = 1006;
///
/// Sends the message to the general chat with SYSTEM prefix.
///
/// The message to send.
public NoticeMessagePacket(string message)
{
Type(PacketNumber);
WriteByte(10);
WriteByte(1);
WriteString($"{message}");
WriteByte(0);
}
}
}