local old_after_place = minetest.registered_nodes["mesecons_commandblock:commandblock_off"].after_place_node minetest.override_item("mesecons_commandblock:commandblock_off",{ after_place_node = function(pos,player,...) local name = player:get_player_name() if minetest.check_player_privs(player,"spill") then return old_after_place(pos,player,...) else if not player.is_fake_player then minetest.chat_send_player(name,"You need the 'spill' privilege to use this.") end local message = string.format("%s was blocked from placing a command block at %s",name,minetest.pos_to_string(pos)) minetest.log("action",message) minetest.remove_node(pos) return true end end, })