Last change
on this file since 377 was 359, checked in by alloc, 5 years ago |
Removed unnecessary try-catch-blocks from commands (command handler catches exceptions anyway and provides more detailed output)
|
File size:
580 bytes
|
Rev | Line | |
---|
[244] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
[325] | 3 | using AllocsFixes.NetConnections.Servers.Web;
|
---|
[244] | 4 |
|
---|
[325] | 5 | namespace AllocsFixes.CustomCommands {
|
---|
| 6 | public class ReloadWebPermissions : ConsoleCmdAbstract {
|
---|
| 7 | public override string GetDescription () {
|
---|
[244] | 8 | return "force reload of web permissions file";
|
---|
| 9 | }
|
---|
| 10 |
|
---|
[325] | 11 | public override string[] GetCommands () {
|
---|
| 12 | return new[] {"reloadwebpermissions"};
|
---|
[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.