Give privilege automatically to admins
This commit is contained in:
parent
a2d69ad699
commit
08ea89ee03
6
init.lua
6
init.lua
@ -1,6 +1,10 @@
|
||||
local original_pos = {}
|
||||
|
||||
minetest.register_privilege("watch", "Player can watch other players")
|
||||
minetest.register_privilege("watch", {
|
||||
description = "Player can watch other players",
|
||||
give_to_singleplayer = false,
|
||||
give_to_admin = true,
|
||||
})
|
||||
|
||||
local function toggle_hud_flags(player, bool)
|
||||
local flags = player:hud_get_flags()
|
||||
|
Loading…
x
Reference in New Issue
Block a user