The ability to catch console input the exact same way we can catch chat with an event, cancel the event and it doesn’t get executed, don’t cancel it and it executes as lua like it normally does!
We started implementing a way to register a function with the console - you could then do something like
Register("myfunction") and be able to call
myfunction() from the console. I do personally believe the console needs a lot more work, too, and I think a proper command syntax might even preferrable, and possibly a way to switch between them. I personally like the “minecraft-server” way of using console commands /help and so on instead of a lua console, but I’m not sure the guys that decide this stuff would be willing to do something like that.
Maybe as a little thought inspiration - what if the server console and the ingame chat had a common interface?
Either way, thanks for the great suggestions! Luasocket was in the back of my mind, and proper modules, oh boy, that’d be cool!