Changeset 499 for TFP-WebServer/CommandExtensions/src
- Timestamp:
- Jul 23, 2024, 6:49:56 PM (5 months ago)
- Location:
- TFP-WebServer/CommandExtensions/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/CommandExtensions/src/ChatHelpers.cs
r485 r499 10 10 } 11 11 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message, 13 $"{senderName} (PM)", null)); 12 _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, 13 $"{senderName} (PM): {_message}", null, 14 EMessageSender.None)); 14 15 string receiverName = _receiver.playerName; 15 16 receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName"; -
TFP-WebServer/CommandExtensions/src/Commands/Give.cs
r487 r499 51 51 } 52 52 53 int quality = Constants.cItemMaxQuality;53 ushort quality = Constants.cItemMaxQuality; 54 54 55 55 if (_params.Count == 4) { 56 if (! int.TryParse (_params [3], out quality) || quality <= 0) {56 if (!ushort.TryParse (_params [3], out quality) || quality > Constants.cItemMaxQuality) { 57 57 SdtdConsole.Instance.Output ("Quality is not an integer or not greater than zero."); 58 58 return;
Note:
See TracChangeset
for help on using the changeset viewer.