#A modded bank system
1 messages · Page 1 of 1 (latest)
it's an item?
are you wanting to also trade the item for money as well as money to item?
yes
there are items like dollar bills
and i want to put them in a "shop" with deluxe menus so i can trade them in essentials balance and vice versa
You can most likely use the has item requirement
I’m off to work soon, but
The material is usually modid_namespace
And use regular give commands to give the items
There is a shop example on the wiki using checkitem, but has item is built in
The all in one GUI menu plugin!
• Spigot
• Wiki
• GUI Creator
• Placeholders
this is a slight modification to the example on the wiki
items:
'0':
material: GRANITE
slot: 0
display_name: '&fGranite'
lore:
- ''
- "&8• &7Buy for: &c$&f100"
- "&8• &7Sell for: &a$&f25"
- ''
- '&8Left click to buy'
- '&8Right click to sell'
- ''
left_click_requirement:
requirements:
anything_here:
type: has money
amount: 100
deny_commands:
- '[message] &6Shop &8> &7You need &c$100 &fto buy &c1 x Granite&f.'
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRANITE'
strict: true
deny_commands:
- '[message] &6Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
left_click_commands:
- '[console] eco take %player_name% 100'
- '[console] minecraft:give %player_name% GRANITE 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a$100&f.'
right_click_commands:
- '[console] eco give %player_name% 25'
- '[console] minecraft:clear %player_name% GRANITE 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
- '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a$25&f.'
the only change i made was switching checkitem to has item requirement
nah idk man
how can i make the item
like GRANITE
to be
the
modded item
?
this one
try gocurrency_currency