diff --git a/init.lua b/init.lua index 5f784bc..c88122a 100644 --- a/init.lua +++ b/init.lua @@ -332,6 +332,11 @@ minetest.register_node("warps:warpstone", { )) warp_queue_add(puncher, destination) end, + on_place = function(itemstack, placer, pointed_thing) + if placer and minetest.check_player_privs(placer, "warp_admin") then + return minetest.item_place(itemstack, placer, pointed_thing) + end + end, }) firstload()