Changeset 402 for binary-improvements2/CommandExtensions/src/ChatHelpers.cs
- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/CommandExtensions/src/ChatHelpers.cs
r391 r402 10 10 } 11 11 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message, senderName + " (PM)", false, null)); 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message, 13 $"{senderName} (PM)", false, null)); 13 14 string receiverName = _receiver.playerName; 14 SdtdConsole.Instance.Output (15 $"Message to player {(receiverName != null ? "\"" + receiverName + "\"" : "unknownName")} sent with sender \"{senderName}\"");15 receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName"; 16 SdtdConsole.Instance.Output ($"Message to player {receiverName} sent with sender \"{senderName}\""); 16 17 } 17 18 }
Note:
See TracChangeset
for help on using the changeset viewer.