Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using AllocsFixes.NetConnections.Servers.Web;
|
---|
3 |
|
---|
4 | namespace AllocsFixes.CustomCommands {
|
---|
5 | public class EnableOpenIDDebug : ConsoleCmdAbstract {
|
---|
6 | public override string GetDescription () {
|
---|
7 | return "enable/disable OpenID debugging";
|
---|
8 | }
|
---|
9 |
|
---|
10 | public override string[] GetCommands () {
|
---|
11 | return new[] {"openiddebug"};
|
---|
12 | }
|
---|
13 |
|
---|
14 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
|
---|
15 | if (_params.Count != 1) {
|
---|
16 | SdtdConsole.Instance.Output ("Current state: " + OpenID.debugOpenId);
|
---|
17 | return;
|
---|
18 | }
|
---|
19 |
|
---|
20 | OpenID.debugOpenId = _params [0].Equals ("1");
|
---|
21 | SdtdConsole.Instance.Output ("Set OpenID debugging to " + _params [0].Equals ("1"));
|
---|
22 | }
|
---|
23 | }
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.