#Requirements not working for some reason
1 messages · Page 1 of 1 (latest)
you didn't include a name for the requirement
its not an oopsie. you're using it wrong
what tangy said + you're not parsing it to a number
can't send imgs in here 😢
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
click_requirement:
requirements:
money:
type: javascript
expression: 'parseDouble("%vault_eco_balance%") >= 100000'
deny_commands:
- "[message] &4&lERROR &7>> &f You do not have &c100K &fcredits!"```
or even better, use the has money requirement instead
click_requirement:
requirements:
money:
type: has money
amount: '100000'
deny_commands:
- "[message] &4&lERROR &7>> &f You do not have &c100K &fcredits!"```
OH Damn it-
Thanks lmao
Still doesnt work for some reason @stark timber - No error messages or anything.
just runs the click_commands:
'75x75_Unlock':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjIyMWRhNDQxOGJkM2JmYjQyZWI2NGQyYWI0MjljNjFkZWNiOGY0YmY3ZDRjZmI3N2ExNjJiZTNkY2IwYjkyNyJ9fX0=
slot: 11
priority: 1
display_name: '&c&lUpgrade'
lore:
- '&fUpgrade the size of your'
- '&fIsland from &c50x50 &fto'
- '&f&a75x75!'
- ''
- '&e❙ Price: &f100k &eCredits'
- ''
- '&c❙ Note: &fyou &cWILL &fhave to'
- '&frelog for this to take effect'
click_requirement:
requirements:
money:
type: has money
amount: '100000'
deny_commands:
- "[message] &4&lERROR &7>> &f You do not have &c100K &fcredits!"
click_commands:
- '[close]'
- '[message] &b&lISLAND &8&l>> &aSuccesfully upgraded island!'
- '[message] &b&lISLAND &8&l>> &cRelog &fto be able to see the changes!'
- '[console] eco take %player_name% 100000'
- '[console] lp user %player_name% permission set bskyblock.island.range.75'
- '[sound] BLOCK_BEACON_ACTIVATE'
@brisk sonnet
execute /dm dump MENU-NAME and send the generated link here please
it says Incorrect usage.
what version of deluxemenus are you using?
ah there we go
I assume, after updating it still doesn't work?
what does /papi parse me %vault_eco_balance% return?
😐
I see.. how about /papi parse me %vault_eco_balance_fixed%
wait but
99396709%
My alt only has 3K
oh
do /papi parse <your alt> %vault_eco_balance%
can you also do /papi dump and send the generated link here as well?
3446.843999999996
send your startup log as well please. just trying to see if the vault hook is actually hooked
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Im confused xD
Should i try this?
This works.
you
can
but also this
'75x75_Unlock':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjIyMWRhNDQxOGJkM2JmYjQyZWI2NGQyYWI0MjljNjFkZWNiOGY0YmY3ZDRjZmI3N2ExNjJiZTNkY2IwYjkyNyJ9fX0=
slot: 11
priority: 1
display_name: '&c&lUpgrade'
lore:
- '&fUpgrade the size of your'
- '&fIsland from &c50x50 &fto'
- '&f&a75x75!'
- ''
- '&e❙ Price: &f100k &eCredits'
- ''
- '&c❙ Note: &fyou &cWILL &fhave to'
- '&frelog for this to take effect'
click_requirement:
requirements:
money:
type: '>='
input: '%vault_eco_balance%'
output: '100000'
deny_commands:
- "[message] &4&lERROR &7>> &f You do not have &c100K &fcredits!"
click_commands:
- '[close]'
- '[message] &b&lISLAND &8&l>> &aSuccesfully upgraded island!'
- '[message] &b&lISLAND &8&l>> &cRelog &fto be able to see the changes!'
- '[console] eco take %player_name% 100000'
- '[console] lp user %player_name% permission set bskyblock.island.range.75'
- '[sound] BLOCK_BEACON_ACTIVATE'```
Orrr not- https://paste.helpch.at/ajimetetod.cs
oh right
change parseDouble with parseFloat.
Works!