Changeset 499 for TFP-WebServer/CommandExtensions
- Timestamp:
- Jul 23, 2024, 6:49:56 PM (4 months ago)
- Location:
- TFP-WebServer/CommandExtensions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/CommandExtensions/ModInfo.xml
r487 r499 5 5 <Description value="Additional commands for server operation" /> 6 6 <Author value="The Fun Pimps LLC" /> 7 <Version value="1.1.0. 0" />7 <Version value="1.1.0.1" /> 8 8 <Website value="" /> 9 9 </xml> -
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.