Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using AllocsFixes.NetConnections.Servers.Web;
|
---|
3 |
|
---|
4 | namespace 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.