diff --git a/TrProtocol/Packets/Modules/NetTextModuleC2S.cs b/TrProtocol/Packets/Modules/NetTextModuleC2S.cs index 88248e7e..f682672c 100644 --- a/TrProtocol/Packets/Modules/NetTextModuleC2S.cs +++ b/TrProtocol/Packets/Modules/NetTextModuleC2S.cs @@ -10,5 +10,9 @@ public class NetTextModuleC2S : NetModulesPacket public override NetModuleType ModuleType => NetModuleType.NetTextModule; public string Command { get; set; } public string Text { get; set; } + public override string ToString() + { + return $"[C2S] {Text}"; + } } } diff --git a/TrProtocol/Packets/Modules/NetTextModuleS2C.cs b/TrProtocol/Packets/Modules/NetTextModuleS2C.cs index b1bb9f31..5e48e01c 100644 --- a/TrProtocol/Packets/Modules/NetTextModuleS2C.cs +++ b/TrProtocol/Packets/Modules/NetTextModuleS2C.cs @@ -10,5 +10,9 @@ public class NetTextModuleS2C : NetModulesPacket, IPlayerSlot public byte PlayerSlot { get; set; } public NetworkText Text { get; set; } public Color Color { get; set; } + public override string ToString() + { + return $"[S2C] {Text._text}"; + } } } \ No newline at end of file diff --git a/TrProtocol/Packets/ReadSign.cs b/TrProtocol/Packets/ReadSign.cs index 99da9e05..a2d5e6ca 100644 --- a/TrProtocol/Packets/ReadSign.cs +++ b/TrProtocol/Packets/ReadSign.cs @@ -7,6 +7,7 @@ public class ReadSign : Packet, IPlayerSlot public override MessageID Type => MessageID.ReadSign; public short SignSlot { get; set; } public ShortPosition Position { get; set; } + public string Text { get; set; } public byte PlayerSlot { get; set; } public byte Bit1 { get; set; } }