forked from mtcontrib/factions
Fixed global privileges not blocking use of commands
This commit is contained in:
parent
85a50688b9
commit
87c5649bce
|
@ -37,6 +37,7 @@ factions.register_command = function(cmd_name, cmd)
|
|||
local bool, missing_privs = minetest.check_player_privs(player, tmp)
|
||||
if not bool then
|
||||
send_error(player, "Unauthorized.")
|
||||
return false
|
||||
end
|
||||
end
|
||||
-- checks argument formats
|
||||
|
|
Loading…
Reference in New Issue
Block a user