source: binary-improvements2/WebServer/src/Commands/ReloadWebPermissions.cs@ 401

Last change on this file since 401 was 391, checked in by alloc, 2 years ago

Major refactoring/cleanup

File size: 559 bytes
RevLine 
[391]1using System.Collections.Generic;
2using JetBrains.Annotations;
3
4namespace Webserver.Commands {
5 [UsedImplicitly]
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 WebPermissions.Instance.Load ();
17 SdtdConsole.Instance.Output ("Web permissions file reloaded");
18 }
19 }
20}
Note: See TracBrowser for help on using the repository browser.