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

Last change on this file since 349 was 325, checked in by alloc, 6 years ago

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

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