From 87c5649bce07230efcae581ebbbfd06eb34f163c Mon Sep 17 00:00:00 2001 From: shamoanjac Date: Tue, 30 Aug 2016 11:38:52 +0200 Subject: [PATCH] Fixed global privileges not blocking use of commands --- chatcommands.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/chatcommands.lua b/chatcommands.lua index 11c2005..8d53acb 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -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