Last change
on this file since 326 was 325, checked in by alloc, 6 years ago |
Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)
|
File size:
680 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) {
|
---|
[244] | 16 | try {
|
---|
[325] | 17 | WebPermissions.Instance.Load ();
|
---|
[244] | 18 | SdtdConsole.Instance.Output ("Web permissions file reloaded");
|
---|
| 19 | } catch (Exception e) {
|
---|
| 20 | Log.Out ("Error in ReloadWebPermissions.Run: " + e);
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.