#When shopping, I can still buy things even if I don't have money
1 messages · Page 1 of 1 (latest)
Make sure you have click requirements to check if the player has enough points, https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#syntax
Here's an example:
click_requirement:
requirements:
hasPoints:
type: ">="
input: "%playerpoints_points%"
output: "10"
your indentation looks wrong, just copy what I sent
how bad ?
even though I have points, now I can't click
can you give me some command somewhere where you use it?
@violet prism
add 4 spaces in front so it's aligned properly
okay
I have it written like this
'pointy15':
material: Anvil
slot: 33
priority: 3
update: true
hide_attributes: true
display_name: '&b&lForging'
lore:
- '&f&lCena: 10 Pointov'
click_requirement:
requirements:
hasPoints:
type: ">="
input: "%playerpoints_points%"
output: "10"
left_click_commands:
- '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
- '[console] points take %player_name% 10'
- '[player] skills xp add %player_name% Forging 10'
slot: 33
.
I still don't know why it doesn't work the way I want it to
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
please paste your config there
I changed the pointy15 item so you can see how it should look like: https://paste.helpch.at/qujujeguli.yaml
yep it should work, you only have to change the "10" to the price
you can also add deny_commands and let the player know that they don't have enough money
I would like to add a command deny command
Where is that ?
https://paste.helpch.at/inacegopam.yaml Should look something like this with the deny commands
output: "10"
the player can still buy without points
what does running /papi parse me %playerpoints_points% show?
that I have 0 points
players can still buy things when they have no points
type: ">=" what is this for?
that input is more than the output
basically meaning that the player has 10 or more points
oh and what should I put there?
it should already work as is
can you maybe try left_click_requirement: instead of click_requirement:?
like this?
yep let me know if it works
okay