https://github.com/mt-mods/reboot_warner
https://github.com/mt-mods/reboot_warner
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mt-mods/reboot_warner
- Owner: mt-mods
- License: other
- Created: 2021-11-28T09:25:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-28T16:38:29.000Z (over 4 years ago)
- Last Synced: 2025-01-01T14:45:13.901Z (over 1 year ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
This mod simply looks for a file periodically, which must be created by
`touch(1)` or something similar, and owned by the same user who is
running the Minetest server. This file simply serves as a sort of flag.
If found, the file is immediately deleted, and pop-up warnings are
issued to all players on the server that it will be rebooting soon.
This mod must be listed in secure.trusted_mods (assuming mod security is
enabled) in order for the `os.remove()` function to work.
The pop-up function is provided by kaeza's notice mod, from here:
https://github.com/kaeza/minetest-kaeza_misc