TShock icon indicating copy to clipboard operation
TShock copied to clipboard

It should have a way to decide whether the input is disabled or not when running in the background.

Open gentlecola opened this issue 5 years ago • 0 comments

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.

gentlecola avatar Jun 06 '20 08:06 gentlecola