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:
parent
c11c2b9956
commit
16fa1fc6df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user