mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Make the server status message customizable (#7357)
Remove now redundant setting show_statusline_on_connect Improve documentation of `minetest.get_server_status`
This commit is contained in:
parent
7d20ff47d7
commit
6f22d14206
7 changed files with 18 additions and 15 deletions
|
@ -3997,7 +3997,13 @@ These functions return the leftover itemstack.
|
|||
Negative delay cancels the current active shutdown.
|
||||
Zero delay triggers an immediate shutdown.
|
||||
* `minetest.cancel_shutdown_requests()`: cancel current delayed shutdown
|
||||
* `minetest.get_server_status()`: returns server status string
|
||||
* `minetest.get_server_status(name, joined)`
|
||||
* Returns the server status string when a player joins or when the command
|
||||
`/status` is called. Returns `nil` or an empty string when the message is
|
||||
disabled.
|
||||
* `joined`: Boolean value, indicates whether the function was called when
|
||||
a player joined.
|
||||
* This function may be overwritten by mods to customize the status message.
|
||||
* `minetest.get_server_uptime()`: returns the server uptime in seconds
|
||||
* `minetest.remove_player(name)`: remove player from database (if they are not
|
||||
connected).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue