|
Last change
on this file since 448 was 420, checked in by alloc, 3 years ago |
|
A21 preparations.
NOT COMPATIBLE WITH A20 ANYMORE!
|
|
File size:
593 bytes
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using AllocsFixes.NetConnections.Servers.Web;
|
|---|
| 4 |
|
|---|
| 5 | namespace AllocsFixes.CustomCommands {
|
|---|
| 6 | public class ReloadWebPermissions : ConsoleCmdAbstract {
|
|---|
| 7 | protected override string getDescription () {
|
|---|
| 8 | return "force reload of web permissions file";
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | protected override string[] getCommands () {
|
|---|
| 12 | return new[] {"reloadwebpermissions_legacy"};
|
|---|
| 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.