Misbah
Misbah
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
if u still need help lmk
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
read through the snippet above and you'll understand how it works
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
so you'll need to change the placeholders and the commands according to the plugin you're using
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
here you go
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
'buy_commonkey':
material: TRIPWIRE_HOOK
amount: 1
slot: 0
update: true
display_name: '&f&l1x &a&lCommon Key'
enchantments:
- mending;1
hide_enchantments: true
hide_attributes: true
lore:
- '&8Coinshop Item'
- ''
- '&6Price: &f10 Coins'
- ''
- '&e➥ Left-Click to purchase'
click_commands:
- "[console] crate key give %player_name% common 1"
- "[console] coins take %player_name% 10"
- "[message] &e&lCoinshop &8&l→ &7You have bought this item!"
- "[message] &e&lCoinshop &8&l→ &f10 &7Coins has been taken from your account!"
- '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
click_requirement:
requirements:
coins:
type: javascript
expression: '%coinsengine_balance_raw_coins% >= 10'
deny_commands:
- "[message] &e&lCoinshop &8&l→ &cYou don't have enough coins to purchase this!"
- "[message] &e&lCoinshop &8&l→ &cYou need &f10 &ccoins, but you only have &f%coinsengine_balance_coins%&c!"
'buy_commonkey':
material: TRIPWIRE_HOOK
amount: 1
slot: 0
update: true
display_name: '&f&l1x &a&lCommon Key'
enchantments:
- mending;1
hide_enchantments: true
hide_attributes: true
lore:
- '&8Coinshop Item'
- ''
- '&6Price: &f10 Coins'
- ''
- '&e➥ Left-Click to purchase'
click_commands:
- "[console] crate key give %player_name% common 1"
- "[console] coins take %player_name% 10"
- "[message] &e&lCoinshop &8&l→ &7You have bought this item!"
- "[message] &e&lCoinshop &8&l→ &f10 &7Coins has been taken from your account!"
- '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
click_requirement:
requirements:
coins:
type: javascript
expression: '%coinsengine_balance_raw_coins% >= 10'
deny_commands:
- "[message] &e&lCoinshop &8&l→ &cYou don't have enough coins to purchase this!"
- "[message] &e&lCoinshop &8&l→ &cYou need &f10 &ccoins, but you only have &f%coinsengine_balance_coins%&c!"
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
i can send you a example if you want
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
will need to have some js logic too so if a user has amount > required to purchase something they'll get an error
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
depends on whatever plugin you're using for economy
15 replies
AAdmincraft
Created by AYODAISY on 1/12/2025 in #questions
How can I let me players buy items with their coins?
using a command
15 replies