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

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

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

File size: 680 bytes
RevLine 
[244]1using System;
2using System.Collections.Generic;
[325]3using AllocsFixes.NetConnections.Servers.Web;
[244]4
[325]5namespace AllocsFixes.CustomCommands {
6 public class ReloadWebPermissions : ConsoleCmdAbstract {
7 public override string GetDescription () {
[244]8 return "force reload of web permissions file";
9 }
10
[325]11 public override string[] GetCommands () {
12 return new[] {"reloadwebpermissions"};
[244]13 }
14
[325]15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
[244]16 try {
[325]17 WebPermissions.Instance.Load ();
[244]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.