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)
|
local bool, missing_privs = minetest.check_player_privs(player, tmp)
|
||||||
if not bool then
|
if not bool then
|
||||||
send_error(player, "Unauthorized.")
|
send_error(player, "Unauthorized.")
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- checks argument formats
|
-- checks argument formats
|
||||||
|
Loading…
Reference in New Issue
Block a user