Fixing admins right

master
Jean 2019-08-26 17:16:25 +02:00
parent 80918a0a3b
commit 20a823a447
1 changed files with 6 additions and 6 deletions

View File

@ -43,12 +43,12 @@ minetest.register_node("adminshop:adminshop", {
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
can_dig = function(pos, player)
@ -176,12 +176,12 @@ if minetest.get_modpath("licenses") ~= nil then
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
can_dig = function(pos, player)
@ -391,12 +391,12 @@ if minetest.get_modpath("licenses") ~= nil and minetest.get_modpath("currency")
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if player:get_player_name() ~= meta:get_string("owner") then return 0 end
if not minetest.check_player_privs(player:get_player_name(), { adminshop=true }) then return 0 end
return stack:get_count()
end,
can_dig = function(pos, player)