Changeset 503 for TFP-WebServer/CommandExtensions/src/ChatHelpers.cs
- Timestamp:
- Jan 27, 2025, 4:29:28 PM (3 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/CommandExtensions/src/ChatHelpers.cs
r499 r503 6 6 PrivateMessageConnections.SetLastPMSender (_sender, _receiver); 7 7 senderName = _sender.playerName; 8 9 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, _sender.entityId, 10 _message, null, EMessageSender.SenderIdAsPlayer, GeneratedTextManager.BbCodeSupportMode.SupportedAndAddEscapes)); 8 11 } else { 9 12 senderName = "Server"; 13 14 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, 15 _message, null, EMessageSender.Server, GeneratedTextManager.BbCodeSupportMode.Supported)); 10 16 } 11 17 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1,13 $"{senderName} (PM): {_message}", null,14 EMessageSender.None));15 18 string receiverName = _receiver.playerName; 16 19 receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName";
Note:
See TracChangeset
for help on using the changeset viewer.