#pls help

1 messages ยท Page 1 of 1 (latest)

sudden ember
velvet forum
#

1 thing i see is deny_commands should be in-line with amount and type

#

can you elaborate an any other issues you're facing with this?

sudden ember
#

i just lined it and it still doesnt work

sudden ember
velvet forum
#

tell us what is happening

#

all you said was "what am I doing wrong"

#

explain your issue

sudden ember
#

Im trying to make a shop for vehicles. Im not very familiar with Deluxe menu, this Is the second menu i made.

What i tried to do Is:

Click commands gives you the vehicle, sends you a message saying you bought It, and takes away 5k from you.

Click requirements checks if you have 5k, if you dont It sends you a message saying you dont have enough Money and closes the menu

velvet forum
#

and what is currently happening?

#

it looks correct

sudden ember
#

the menu just wont load when i reload

velvet forum
#

Did you add it to the config? Does it show in /dm list?

sudden ember
#

i copied the config i had created myself, deleted the file, generated a new menu file and pasted the config but it still doesnt work

sudden ember
sudden ember
#

yes i did

#

i created this post because i tried everything myself

placid pine
#

You are missing display_name on the item ๐Ÿ™‚

#

`menu_title: 'Vehicles'
open_command:

  • vehicles
    size: 27
    items:
    'yellowtractor':
    material: 'book'
    display_name: 'Yellow Tractor'
    slot: 0
    lore:
    • '&fClick to buy a &#f2ff00T&#f2ff00r&#f2ff00a&#f2ff00c&#f2ff00t&#f2ff00o&#f2ff00r &f!'
    • ''
    • '&#f2ff00Price&f: 5000'
      click_commands:
    • '[console] givetractor %player_name% YELLOW'
    • '[console] economy take %player_name% 5000'
    • '[message] &4&lROSESMP&f you have bought a &#f2ff00Yellow Tractor&f for 5000&2$&f!'
      click_requirement:
      requirements:
      has_money:
      type: 'has money'
      amount: '5000'
      deny_commands:
      • '[message] &4&lROSESMP &fYou don''t have enough &#00C00Dmoney&f for this!'`

Paste this into your menu file and into config.yml paste this

debug: HIGHEST check_updates: true gui_menus: vehicles: file: vehicles.yml

velvet forum
#

display_name is not required fyi

sudden ember
#

everything works except for the requirement. i can still buy the item even if i dont have enough money

rugged ridge
#

try removing the ' ' around 5000 in the amount

velvet forum
#

ah, that would prob do it yep

#

and if so, there was probably a message in the log that signified the issue

crimson idol
#

bruh no

#

the issue is that the deny_commands doesnt have the correct syntax

#

and its passed as a requirement

#

@placid pine try this

    click_requirement:
      requirements:
        has_money:
          type: 'has money'
          amount: '5000'
          deny_commands:
          - '[message] &4&lROSESMP &fYou don''t have enough &#00C00Dmoney&f for this!'
#

oh wait

#

wrong tag :/

#

@sudden ember ^

sudden ember
#

Oh Sorry i forgot to Say It worked

sudden ember
crimson idol
#

np :d

sudden ember
#

Thanks all of you y'all saved me hours of pain ๐Ÿ˜ญ๐Ÿ™

velvet forum
#

pretty sure it was the amount thing though, because amount: expects a number