Admins can get a list of the StationEvents (#1670)

* -GetStationEventsMsg
-Fixed random in events help

* Don't send on connect

* Delete StationEvents on disconnect

* Resolve IClientNetManager when needed

* :smilethink:

* Remove setter

* Removed unused imports

* Don't resolve twice

* Add Event
This commit is contained in:
Exp
2020-08-18 14:29:13 +02:00
committed by GitHub
parent fc0c9c7a04
commit bbdfe44224
7 changed files with 144 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
#nullable enable
#nullable enable
using Content.Server.GameObjects.EntitySystems;
using Content.Server.GameObjects.EntitySystems.StationEvents;
using JetBrains.Annotations;
@@ -14,11 +14,10 @@ namespace Content.Client.Commands
{
public string Command => "events";
public string Description => "Provides admin control to station events";
public string Help => "events <list/pause/resume/random/stop/run <eventname>>\n" +
public string Help => "events <list/pause/resume/stop/run <eventname/random>>\n" +
"list: return all event names that can be run\n " +
"pause: stop all random events from running\n" +
"resume: allow random events to run again\n" +
"random: choose a random event that is valid and run it\n" +
"run: start a particular event now; <eventname> is case-insensitive and not localized";
public void Execute(IConsoleShell shell, IPlayerSession? player, string[] args)
{
@@ -99,4 +98,4 @@ namespace Content.Client.Commands
return;
}
}
}
}