-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NatureFreshMilk
committed
Sep 3, 2019
1 parent
c0d295d
commit 520d986
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
# shell mod for minetest | ||
|
||
Allows you to execute chat commands via text files on the server-machine | ||
|
||
## Usage | ||
|
||
After installing the mod everything you write into `shell.txt` in the world directory will be executed as chatcommand. | ||
The results from the last command are saved in `shell_result.txt` | ||
|
||
The executing player is currently `admin` and hardcoded (could be made into a setting) | ||
|
||
### Shutdown the server with a countdown | ||
|
||
``` | ||
echo "shutdown 60" > shell.txt | ||
``` | ||
|
||
### Message a player | ||
|
||
``` | ||
echo "msg someplayer hello" > shell.txt | ||
``` | ||
|