#deluxemenus shop help

1 messages · Page 1 of 1 (latest)

slender igloo
#

hello. I'm currently creating a store gui. In the process, several difficult problems arose, so I asked this question. The first is inventory space. The store I created is a store that changes one item A into 8 items B. Here the first problem arises.

  1. If you exchange an item while the inventory is full, the item will not be issued because the inventory is full, and the item being exchanged will be consumed. Because of this, you want to make sure you have enough space in your inventory. This also includes:

  2. The second problem is as follows. I would like to allow the item to be exchanged only 5 times per day in the gui. I don't know how to implement this.

robust heart
#

About the first one, use PlaceholderAPI checkitem expansion, there's a placeholder return remain space in inventory, then if player meet the requirement, drop the item.

#

The second one could be done by LuckPerms metadata, if you don't know how to do this, I suggest you could read their wiki.

slender igloo
robust heart
#

Not the developer api part, this is for coder

#
slender igloo
robust heart
#

Feel free to ask 😉

slender igloo
# robust heart Feel free to ask 😉

im going to make like this.

1. /lp user <player> meta set daily_trades 0

2. left_click_commands: - '[console] iaremove %player_name% stone:red_diamond 32 silent' - '[console] eco take %player_name% 30000' - '[console] iagive %player_name% armor:dion 1 silent' - '[console] lp user %player_name% meta set daily_trades %math_%luckperms_meta_daily_trades%+1%'

#

is this right?

#

and then when the day back

/lp bulkupdate users deleteall meta.daily_trades```
robust heart
slender igloo
#

so when i [console] lp user %player_name% meta set daily_trades %math_%luckperms_meta_daily_trades%+1%
return is %math_%luckperms_meta_daily_trades%+1% this

robust heart
#

%math_0_{luckperms_meta_daily_trades}+1%

#

try this