- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/EnableOpenIDDebug.cs
r318 r325 1 1 using System; 2 2 using System.Collections.Generic; 3 using AllocsFixes.NetConnections.Servers.Web; 3 4 4 namespace AllocsFixes.CustomCommands 5 { 6 public class EnableOpenIDDebug : ConsoleCmdAbstract 7 { 8 public override string GetDescription () 9 { 5 namespace AllocsFixes.CustomCommands { 6 public class EnableOpenIDDebug : ConsoleCmdAbstract { 7 public override string GetDescription () { 10 8 return "enable/disable OpenID debugging"; 11 9 } 12 10 13 public override string[] GetCommands () 14 { 15 return new string[] { "openiddebug" }; 11 public override string[] GetCommands () { 12 return new[] {"openiddebug"}; 16 13 } 17 14 18 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) 19 { 15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 20 16 try { 21 17 if (_params.Count != 1) { 22 SdtdConsole.Instance.Output ("Current state: " + AllocsFixes.NetConnections.Servers.Web.OpenID.debugOpenId);18 SdtdConsole.Instance.Output ("Current state: " + OpenID.debugOpenId); 23 19 return; 24 20 } 25 21 26 AllocsFixes.NetConnections.Servers.Web.OpenID.debugOpenId = _params[0].Equals("1");22 OpenID.debugOpenId = _params [0].Equals ("1"); 27 23 SdtdConsole.Instance.Output ("Set OpenID debugging to " + _params [0].Equals ("1")); 28 24 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.