Is there a way to catch in-game chat and send it to external program? I'm making a program like Mclawl (for Minecraft Classic). I have a lot done, such as the settings input and writing to minetest.conf, I have a partial GUI made, but I wanted an in-game to/from console chat. The program would display in-game chat and the server owner can send messages back to the game chat. That way server owners can chitchat with players and send commands and such without having to login. (Yes, I know about the IRC mod, but this does that and more) I have tried to make a Minetest chat log and read from there, which works IF it closes and re-opens every second (a LOT of lag) and the same for sending messages, it must open/close every second.
This little project is fun and is helping me learn both Lua and Python. I hope someone out there can help me. Any help is appreciated. Thanks in advance! :)
--Tedypig