This mod allows sending chat commands and messages from outside minetest. I made it so scripts could interact with the server.
A bug: you need to manually create a player named "SERVER" with all privs for some commands to work.
How to use
Write something to a file called "message" in the world folder. When that file is written, external_cmd reads the first line. The syntax is exactly the same as if you were typing it into the in-game chat box.
This is the bash command I use:
- Code: Select all
echo [message] > ~/.minetest/worlds/[world]/message
License:
LGPL
Some code is from builtin/chatcommands.lua
Dependencies
none
Download
Git: repo
Version 1: download zip
Version 2: download zip
now reads from world folder rather than mod folder
Version 3: download zip
now runs commands as the server admin