mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +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
|
@ -799,7 +799,11 @@ core.register_chatcommand("rollback", {
|
|||
core.register_chatcommand("status", {
|
||||
description = "Show server status",
|
||||
func = function(name, param)
|
||||
return true, core.get_server_status()
|
||||
local status = core.get_server_status(name, false)
|
||||
if status and status ~= "" then
|
||||
return true, status
|
||||
end
|
||||
return false, "This command was disabled by a mod or game"
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue