[Mod] Simple Shutdown helper [v1.5] [timer_shutdown]
Hello there,
since it could be some kind of annoying if the server just suddenly shuts down by operator request, i made this little tool. This way, server admins and/or moderators can shut down the server with a reason which is printed to all users. And it also only shuts down after a given time.
License: - No license -
Version: 1.5
Features:
> Countdown
It counts the seconds from 5 down to 0
( up to now, its also counting the *.5 values too, will be fixed soon )
> User privs
To use this command, one has to have the privilege 'q_shutdown'
This might be useful if you grant this to a trustful moderator and
have a automatic restart script running for minetest (may be added into
this mod also, but its only a idea for now), the moderator will be capable
of restarting the server with this request.
> (Basic) Logging
This mod logs the reason and the name when this command has been called.
Should a user abuse this feature, the server admin could easily revoke the priv
> Global Reason message
Up to now, it only supports one word as reason (example "Restart"). It will support
a string later (planned for v1.6). It sends a global chat message to all players with the
time when it will shut down, and the reason
> Time based shutdown
The <time> parameter takes the seconds when the server should shut down
> Remote Control shutdown
(Up to now insecure, please wait for future release) It currently works with a local file.
If a user called the /remote_control on command, it will check a file every 200 server
steps ( i took this value to maybe reduce performance impact due to io operations )
-- since v1.5
> Performance shutdown
Implemented a function, which checks if the server globalstep delay is to huge. If the
expected steps according to the server settings are about 75% higher than the steps that
Should have kicked in, the server will shut down.
Warning!This is only usable if you have a automatic restart script for your server.
> Empty user list shutdown
Shuts the server down, if the user list is empty
I checked the forum search, but i found nothing similiar. If there is already something like this, just let me know :3
Ver 1.5
Download (Github)
Source:
fairiestoy/timer_shutdown @Github
Greetings
since it could be some kind of annoying if the server just suddenly shuts down by operator request, i made this little tool. This way, server admins and/or moderators can shut down the server with a reason which is printed to all users. And it also only shuts down after a given time.
License: - No license -
Version: 1.5
Features:
> Countdown
It counts the seconds from 5 down to 0
( up to now, its also counting the *.5 values too, will be fixed soon )
> User privs
To use this command, one has to have the privilege 'q_shutdown'
This might be useful if you grant this to a trustful moderator and
have a automatic restart script running for minetest (may be added into
this mod also, but its only a idea for now), the moderator will be capable
of restarting the server with this request.
> (Basic) Logging
This mod logs the reason and the name when this command has been called.
Should a user abuse this feature, the server admin could easily revoke the priv
> Global Reason message
Up to now, it only supports one word as reason (example "Restart"). It will support
a string later (planned for v1.6). It sends a global chat message to all players with the
time when it will shut down, and the reason
> Time based shutdown
The <time> parameter takes the seconds when the server should shut down
> Remote Control shutdown
(Up to now insecure, please wait for future release) It currently works with a local file.
If a user called the /remote_control on command, it will check a file every 200 server
steps ( i took this value to maybe reduce performance impact due to io operations )
-- since v1.5
> Performance shutdown
Implemented a function, which checks if the server globalstep delay is to huge. If the
expected steps according to the server settings are about 75% higher than the steps that
Should have kicked in, the server will shut down.
Warning!This is only usable if you have a automatic restart script for your server.
> Empty user list shutdown
Shuts the server down, if the user list is empty
I checked the forum search, but i found nothing similiar. If there is already something like this, just let me know :3
Ver 1.5
Download (Github)
Source:
fairiestoy/timer_shutdown @Github
Greetings