Changeset 499 for TFP-WebServer/CommandExtensions/src/Commands/Give.cs
- Timestamp:
- Jul 23, 2024, 6:49:56 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.