Hide status message for cinecams by default

By default, players joining the server who are
configured to act as cinematic cameras only
should not see the server status message ...
unless specifically configured to see it.
This commit is contained in:
Aaron Suen 2022-11-05 16:37:40 -04:00
parent c11c2b9956
commit 16fa1fc6df

View File

@ -398,3 +398,12 @@ minetest.register_globalstep(function(dtime)
end
end
end)
local status = minetest.get_server_status
function minetest.get_server_status(name, ...)
if enabled_players[name] and
not minetest.settings:get_bool(modname .. "_statusline") then
return ""
end
return status(name, ...)
end