- Timestamp:
- Jul 28, 2023, 8:11:39 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/MapRendering/src/Commands/EnableRendering.cs
r405 r453 6 6 public class EnableRendering : ConsoleCmdAbstract { 7 7 protected override string getDescription () { 8 return "enable/disable live map rendering"; 8 return "Disable live map rendering"; 9 } 10 11 protected override string getHelp () { 12 return @" 13 |Usage: 14 | 1. enablerendering 15 | 2. enablerendering <0/1> 16 |1. Show current state of renderer 17 |2. Disable/enable renderer 18 |NOTE: This command can only turn the renderer off, it can not turn it on if it is not enabled in the serverconfig! 19 ".Unindent (); 9 20 } 10 21 … … 15 26 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 16 27 if (_params.Count != 1) { 17 SdtdConsole.Instance.Output ($"Current state: {MapRenderer.renderingEnabled}"); 28 SdtdConsole.Instance.Output ( 29 $"Current state: {MapRenderer.Enabled && MapRenderer.renderingEnabled}{(!MapRenderer.Enabled ? " (disabled by serverconfig!)" : "")}"); 18 30 return; 19 31 }
Note:
See TracChangeset
for help on using the changeset viewer.