#can't buy something when your inventory is full
1 messages · Page 1 of 1 (latest)
-papi player
o_O
well anyways
there's a player placeholder that returns how many empty slots are left in the player's inventory
%player_empty_slots%
type: '!='
input: '^ that placeholder'
output: 0
yeah
thx i will test later
how i make 2 requirement ?
i have this :
material: SKULL_ITEM
data: 2
slot: 20
display_name: '§6&lSpawner §f◆ §e§lZombie'
lore:
- ''
- '§f§l► §7Faîtes §fapparaître §7des §fmonstres'
- ' §7à votre §fbase §7grâce à ce §fspawner §7!'
- ''
- '&fPrix: &a&l2.000.000$'
left_click_requirement:
minimum_requirements: 2
stop_at_success: true
requirements:
money_requirement:
type: has money
amount: 2000000
deny_commands:
- '[message] §6§lArkaMc §f§l► &cVous n''avez pas les fonds nécessaires !'
invnofull_requirement:
type: '!='
input: '%player_has_empty_slot%'
output: 0
deny_commands:
- '[message] §6§lArkaMc §f§l► &cMerci de laisser au moins 1 slot vide dans votre inventaire'
left_click_commands:
- '[console] eco take %player_name% 2000000'
- '[console] stacker give %player_name% spawner Zombie 1'
- '[console] bc §6§lBoutique §f§l► §a§l%player_name% §fa acheté un §b§lSpawner à Zombie §f! §7(/f2w)'
- '[close]'```
but he tell me this error
change it to type: string equals and the output to yes
probably the placeholder returns yes/no and not the amount i guess
oh yeah, if you use has_empty_slots then you need to check if it returns yes, otherwise use empty_slots and check if it returns 0