Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 |
|
---|
4 | namespace AllocsFixes.CustomCommands
|
---|
5 | {
|
---|
6 | public class ReloadWebPermissions : ConsoleCmdAbstract
|
---|
7 | {
|
---|
8 | public override string GetDescription ()
|
---|
9 | {
|
---|
10 | return "force reload of web permissions file";
|
---|
11 | }
|
---|
12 |
|
---|
13 | public override string[] GetCommands ()
|
---|
14 | {
|
---|
15 | return new string[] { "reloadwebpermissions" };
|
---|
16 | }
|
---|
17 |
|
---|
18 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo)
|
---|
19 | {
|
---|
20 | try {
|
---|
21 | AllocsFixes.NetConnections.Servers.Web.WebPermissions.Instance.Load ();
|
---|
22 | SdtdConsole.Instance.Output ("Web permissions file reloaded");
|
---|
23 | } catch (Exception e) {
|
---|
24 | Log.Out ("Error in ReloadWebPermissions.Run: " + e);
|
---|
25 | }
|
---|
26 | }
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.