#click requirement
1 messages · Page 1 of 1 (latest)
'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'
click_requirement:
requirements:
'have money':
type: has money
amount: 500
Ok
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'
Can you paste that into a pastebin @dark pilot
https://paste.helpch.at/boguwawoga.yaml
@oblique plover
Try having left click command
@oblique plover Still dont work,this timedoesnt even give me the voucher
https://paste.helpch.at/anahujocuk.yaml
Lmao
I just copyed what you did
Shut up, at least I'm trying and it pasted over wrong
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
Not the case here
Because the command is taking money from the player
So [player] is not the right one
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.
Yea I get that from the commands . If use [player] u will see it wont alow the transaction to happen
Thats what im saying
It does not give OP for any time. You should use [console] to give players money/items.
If you use [player] then it won’t work for normal players.
Also, [console] does not “Override” anything. If you’re allowed to get the item without the correct amount of money, that would be entirely the fault of the click requirements you’re using
Can u try use this as it works perfect for me .
I'm very curious to see your menu, but this thread isn't really about the op anymore
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 .
that is bad advice and would not work.
[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]