Command IO
By default Unturned executes commands from console input, and logs information to console output. This can be overridden however, for example to interact with an external process or remote console.
To replace the vanilla implementation:
Create a class that implements the ICommandInputOutput interface.
Get the CommandWindow singleton from Dedicator.commandWindow.
Pass instance to CommandWindow.setIOHandler.
(Optional) Specify
-NoDefaultConsole
on the command-line to disable vanilla console.