source: TFP-WebServer/WebServer/src/Commands/EnableOpenIDDebug.cs

Last change on this file was 487, checked in by alloc, 5 months ago

1.1.0.1 Release for V 1.0

File size: 699 bytes
Line 
1using System.Collections.Generic;
2using JetBrains.Annotations;
3
4namespace Webserver.Commands {
5 [UsedImplicitly]
6 public class EnableOpenIDDebug : ConsoleCmdAbstract {
7 public override string getDescription () {
8 return "enable/disable OpenID debugging";
9 }
10
11 public override string[] getCommands () {
12 return new[] {"openiddebug"};
13 }
14
15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
16 if (_params.Count != 1) {
17 SdtdConsole.Instance.Output ($"Current state: {OpenID.debugOpenId}");
18 return;
19 }
20
21 OpenID.debugOpenId = _params [0].Equals ("1");
22 SdtdConsole.Instance.Output ($"Set OpenID debugging to {_params [0].Equals ("1")}");
23 }
24 }
25}
Note: See TracBrowser for help on using the repository browser.