source: binary-improvements2/MapRendering/Commands/ReloadWebPermissions.cs@ 389

Last change on this file since 389 was 383, checked in by alloc, 2 years ago

Fixed a bunch of warnings

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