#Requirements not working for some reason

1 messages · Page 1 of 1 (latest)

opal quail
brisk sonnet
#

you didn't include a name for the requirement

stark timber
#

what tangy said + you're not parsing it to a number

brisk sonnet
#

can't send imgs in here 😢

weak nebulaBOT
brisk sonnet
#

I send imgs in other channels though

#

sad

stark timber
#
    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

brisk sonnet
#

btw, wouldn't it be better to use >= since DM's new version?

#

or that too yeah

stark timber
#
    click_requirement:
      requirements:
        money:
          type: has money
          amount: '100000'
          deny_commands:
            - "[message] &4&lERROR &7>> &f You do not have &c100K &fcredits!"```
opal quail
#

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

stark timber
opal quail
#

it says Incorrect usage.

stark timber
#

ah there we go

opal quail
#

Was using the DEV version 1.13.6

#

xD

stark timber
opal quail
#

yup

#

Still just does the click_commands

stark timber
#

what does /papi parse me %vault_eco_balance% return?

opal quail
#

Uhhh about 99.39M

#

But then in written out numbers

#

so 9.939670924999999E7

brisk sonnet
#

😐

stark timber
brisk sonnet
#

wait but

brisk sonnet
#

if he has 99M money

#

and the requirement wants 100000

#

isn't the requirement met?

opal quail
#

My alt only has 3K

brisk sonnet
#

oh

opal quail
#

and that runs it fine

#

For some reason.

brisk sonnet
#

do /papi parse <your alt> %vault_eco_balance%

stark timber
opal quail
opal quail
stark timber
weak nebulaBOT
#
FAQ Answer:

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.

stark timber
#

hmm

#

[DeluxeMenus] Successfully hooked into Vault!

opal quail
#

Im confused xD

stark timber
#

yeah. I'll have to test this myself

#

later tonight

#

wait 1 more thing.

opal quail
opal quail
stark timber
#

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'```
opal quail
stark timber
#

oh right

stark timber
opal quail
#

Works!