- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/ReloadWebPermissions.cs
r244 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 ReloadWebPermissions : ConsoleCmdAbstract 7 { 8 public override string GetDescription () 9 { 5 namespace AllocsFixes.CustomCommands { 6 public class ReloadWebPermissions : ConsoleCmdAbstract { 7 public override string GetDescription () { 10 8 return "force reload of web permissions file"; 11 9 } 12 10 13 public override string[] GetCommands () 14 { 15 return new string[] { "reloadwebpermissions" }; 11 public override string[] GetCommands () { 12 return new[] {"reloadwebpermissions"}; 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 AllocsFixes.NetConnections.Servers.Web.WebPermissions.Instance.Load ();17 WebPermissions.Instance.Load (); 22 18 SdtdConsole.Instance.Output ("Web permissions file reloaded"); 23 19 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.