Good evening, I am trying to create a menu so that only people who are top 1, 2 or 3 in monthly money on my server can claim this reward but despite being top 2 it tells me the ''deny command'' message . Could someone tell me what I'm doing wrong? thank you very much in advance.
'topreales':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWZkMTA4MzgzZGZhNWIwMmU4NjYzNTYwOTU0MTUyMGU0ZTE1ODk1MmQ2OGMxYzhmOGYyMDBlYzdlODg2NDJkIn19fQ==
slot: 11
update: true
display_name: '&6&l🪙 ᴛᴏᴘ ʀᴇᴀʟᴇꜱ 🪙'
lore:
- ''
- 'RECLAMA CADA DIA 30'
- ''
click_requirement:
minimum_requirements: 1
stop_at_success: true
requirements:
estarentop:
type: string equals
expression: "%ajlb_position_vault_eco_balance_monthly% == 1"
estarentop2:
type: string equals
expression: "%ajlb_position_vault_eco_balance_monthly% == 2"
estarentop3:
type: javascript
expression: '%ajlb_position_vault_eco_balance_monthly% == 3'
deny_commands:
- '[message] &8TOPS &7» &cNecesitas estar en el tercer puesto o mejor para poder reclamar.'
click_commands:
- '[console] money give %player_name% 1000'```