source: binary-improvements/MapRendering/Commands/ReloadWebPermissions.cs@ 262

Last change on this file since 262 was 244, checked in by alloc, 9 years ago

Fixes intermediate state

File size: 689 bytes
RevLine 
[244]1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.CustomCommands
5{
6 public class ReloadWebPermissions : ConsoleCmdAbstract
7 {
8 public override string GetDescription ()
9 {
10 return "force reload of web permissions file";
11 }
12
13 public override string[] GetCommands ()
14 {
15 return new string[] { "reloadwebpermissions" };
16 }
17
18 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo)
19 {
20 try {
21 AllocsFixes.NetConnections.Servers.Web.WebPermissions.Instance.Load ();
22 SdtdConsole.Instance.Output ("Web permissions file reloaded");
23 } catch (Exception e) {
24 Log.Out ("Error in ReloadWebPermissions.Run: " + e);
25 }
26 }
27 }
28}
Note: See TracBrowser for help on using the repository browser.