Fixed global privileges not blocking use of commands

This commit is contained in:
shamoanjac 2016-08-30 11:38:52 +02:00
parent 85a50688b9
commit 87c5649bce
1 changed files with 1 additions and 0 deletions

View File

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