06-28-2013, 01:17 AM
I wrote a simple RCON server into MCServer, but it cannot really do much now:
- Commands write output directly to console, there's no framework to redirect the output to RCON
- "stop" command waits for an enter keypress on the console, making RCON-shutdown impossible
I need to change the way commands' output is handled. The command handlers will receive a Callback method which they'll use to output; then RCON can have a different callback from the console. This will be quite a chore to write Lua-aware.
- Commands write output directly to console, there's no framework to redirect the output to RCON
- "stop" command waits for an enter keypress on the console, making RCON-shutdown impossible
I need to change the way commands' output is handled. The command handlers will receive a Callback method which they'll use to output; then RCON can have a different callback from the console. This will be quite a chore to write Lua-aware.