Give privilege automatically to admins

This commit is contained in:
Panquesito7 2020-04-30 17:34:45 -05:00 committed by SmallJoker
parent a2d69ad699
commit 08ea89ee03

View File

@ -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()