TShock
TShock copied to clipboard
It should have a way to decide whether the input is disabled or not when running in the background.
It should have a way to decide whether the input is disabled or not when running in the background.
in TerrariaAPI-Server/TerrariaServerAPI/TerrariaApi.Server/Hooking/ServerHooks.cs There have:
static HookResult OnStartCommandThread()
{
if (Console.IsInputRedirected == true)
{
Console.WriteLine("TerrariaServer is running in the background and input is disabled.");
return HookResult.Cancel;
}
return HookResult.Continue;
}
When i use panel to manager the server, input will be disabled.So everytime TShock update,I have to delete this code and rebuild TShock. I hope there can have a way to control whether it shuold be disabled.