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