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