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

Last change on this file since 420 was 420, checked in by alloc, 20 months ago

A21 preparations.
NOT COMPATIBLE WITH A20 ANYMORE!

File size: 593 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 {
[420]7 protected override string getDescription () {
[244]8 return "force reload of web permissions file";
9 }
10
[420]11 protected override string[] getCommands () {
12 return new[] {"reloadwebpermissions_legacy"};
[244]13 }
14
[325]15 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
[359]16 WebPermissions.Instance.Load ();
17 SdtdConsole.Instance.Output ("Web permissions file reloaded");
[244]18 }
19 }
20}
Note: See TracBrowser for help on using the repository browser.