#click requirement

1 messages · Page 1 of 1 (latest)

dark pilot
#

I need help with my click requrement because im trying to get it to take $500 and then give a $500 voucher but when I have $0 it still gives me the voucher and I set up the click requrement but its not working

#

'example':
material: EMERALD
slot: 21
priority: 1
update: true
hide_attributes: true
display_name: '&#FFCF00E&#FFC600c&#FFBD00o &#FFB400G&#FFAC00u&#FFA300i&#FF9A00d&#FF9100e'
lore:
- '&r&7Click this icon to learn about the servers economy system!'
click_commands:
- '[console] iv give %player_name% $500 1'
- '[console] eco take %player_name% 500'
click_requirement:
- '[player] eco %player_name% 500'

strong flume
#
click_requirement:
  requirements:
    'have money':
      type: has money
      amount: 500
dark pilot
#

Ok

dark pilot
# strong flume ```yaml click_requirement: requirements: 'have money': type: has mon...

Now its not taking the money but still giving the voucher

'example':
material: EMERALD
slot: 21
priority: 1
update: true
hide_attributes: true
display_name: '&#FFCF00E&#FFC600c&#FFBD00o &#FFB400G&#FFAC00u&#FFA300i&#FF9A00d&#FF9100e'
lore:
- '&r&7Click this icon to learn about the servers economy system!'
click_requirement:
requirements:
'have money':
type: has money
amount: 500
click_commands:
- '[console] iv give %player_name% $500 1'
- '[console] eco take %player_name% 500'

oblique plover
#

Can you paste that into a pastebin @dark pilot

dark pilot
oblique plover
#

Try having left click command

dark pilot
strong flume
#

what is this 🫠

#

😩

paper tapir
dark pilot
#

I just copyed what you did

dark pilot
runic kayak
#

I had a similar issue to this and to make a quick fix I changed the [console] comand to [player] this stopped amy sort of over ride the console command can do

oblique plover
#

Because the command is taking money from the player

#

So [player] is not the right one

runic kayak
#

The player command doesn't mean it takes money from player it mean the player is running the command and not the server /console. And it says that they get the item weather they have the money or not . So the console command can just over ride it but the player one can't

#

I'm not sure if the player command just gives op for 1 sec to allow it . But yea that console command will alow the shop to process the sale even if they have no money.

runic kayak
oblique plover
#

Thats what im saying

amber hatch
runic kayak
#

Can u try use this as it works perfect for me .

amber hatch
#

I'm very curious to see your menu, but this thread isn't really about the op anymore

runic kayak
#

Yea i was just answering the first question . Where the console was giving item Eben when they have no money . And from my experience when u use the [console] it can override it .

#

The menu stays the same as above all u would change is the [console] to [player] on the give item command .

#

I do see what ya mean about click commands also .

amber hatch
#

[player] executes the command AS a player

#

if you did [console] give %player_name% diamond 1 that gives the player the item

#

if you did [player] give %player_name% diamond 1 that will make the PLAYER run the commmand and only server operators/owners/staff (anybody with give perms) would receieve the item

#

NEITHER of those commands has ANYTHING to do with money

#

you need a click requirement that check's the user's money, then if they have enough money, will the click commands be executed

#

and should be done via [console]