commit
This commit is contained in:
parent
eedd923582
commit
91faa753d0
4
init.lua
4
init.lua
@ -12,7 +12,7 @@ dofile(modpath.."/player_to_player_shop.lua")
|
||||
|
||||
|
||||
|
||||
minetest.register_privilege("server_shop_admin", {
|
||||
minetest.register_privilege("shopping_admin", {
|
||||
description = "Lets player remove, add things to server shop, or nuke shop",
|
||||
})
|
||||
|
||||
@ -51,7 +51,7 @@ minetest.register_chatcommand("shop", {
|
||||
minetest.register_chatcommand("nukeshop", {
|
||||
description = "Clears shop",
|
||||
privs = {
|
||||
server_shop_admin = true,
|
||||
shopping_admin = true,
|
||||
},
|
||||
func = function()
|
||||
local mod_storage = shopping.storage
|
||||
|
@ -56,7 +56,7 @@ local function get_item_from_shop(name, index)
|
||||
|
||||
|
||||
privs = minetest.get_player_privs(name)
|
||||
if privs["server_shop_admin"] then
|
||||
if privs["shopping_admin"] then
|
||||
if give_item_to_player(name, shop[index][1]) then
|
||||
remove_entry(shop, index)
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user