mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Removes relay restart
This commit is contained in:
@@ -41,7 +41,7 @@ namespace TGServerService
|
||||
public RootChatCommand()
|
||||
{
|
||||
PrintHelpList = true;
|
||||
Children = new Command[] { new CheckCommand(), new StatusCommand(), new PRsCommand(), new VersionCommand(), new AHelpCommand(), new NameCheckCommand(), new RevisionCommand(), new AdminWhoCommand(), new ByondCommand(), new KekCommand(), new RelayRestartCommand() };
|
||||
Children = new Command[] { new CheckCommand(), new StatusCommand(), new PRsCommand(), new VersionCommand(), new AHelpCommand(), new NameCheckCommand(), new RevisionCommand(), new AdminWhoCommand(), new ByondCommand(), new KekCommand() };
|
||||
}
|
||||
}
|
||||
class RevisionCommand : ChatCommand
|
||||
@@ -262,22 +262,4 @@ namespace TGServerService
|
||||
return "<ckey> <message|ticket <close|resolve|icissue|reject|reopen <ticket #>|list>>";
|
||||
}
|
||||
}
|
||||
class RelayRestartCommand : ChatCommand
|
||||
{
|
||||
public RelayRestartCommand()
|
||||
{
|
||||
Keyword = "relayrestart";
|
||||
RequiresAdmin = true;
|
||||
}
|
||||
protected override ExitCode Run(IList<string> parameters)
|
||||
{
|
||||
Instance.InitInterop();
|
||||
return ExitCode.Normal;
|
||||
}
|
||||
|
||||
public override string GetHelpText()
|
||||
{
|
||||
return "Restart the relay listener. This is a massive hack but it'll do for now";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user