Multi Currency Plugins
If a plugin supports multiple currencies, you can use the following format to add multiple currencies to the trade gui:
First of all, make sure to enable all the currencies that you want, for example here the coins
and money
currency is enabled.
Example CoinsEngine setup in the currencies.yml
:
currencies:
CoinsEngine:
register: true
enabled:
- currency-name: "coins"
name: "special coin"
- currency-name: "money"
name: "special money"
After that you will also have to add it to the guis.yml
, first let's add both to the own
section, this is how it will look like:
own:
coinsengine-example-1:
slot: 2
currency: "CoinsEngine-coins"
material: "GOLD_NUGGET"
name: "�ffdd&lCoinsEngine Coins"
lore:
- "&7Your offer"
- ""
- " &7- &fAmount: �ffdd%amount%$"
- ""
- "�ffdd&l> �ffddClick &8- �ffddChange Amount"
coinsengine-example-2:
slot: 3
currency: "CoinsEngine-money"
material: "GOLD_NUGGET"
name: "�ffdd&lCoinsEngine Money"
lore:
- "&7Your offer"
- ""
- " &7- &fAmount: �ffdd%amount%$"
- ""
- "�ffdd&l> �ffddClick &8- �ffddChange Amount"
If this is done, scroll a bit to the partner
section and do almost the same thing once again:
partner:
coinsengine-example-1:
slot: 6
currency: "CoinsEngine-coins"
material: "GOLD_NUGGET"
name: "�ffdd&lCoinsEngine Coins"
lore:
- "&7%player%'s offer"
- ""
- " &7- &fAmount: �ffdd%amount%$"
- ""
- "�ffdd&l> �ffddClick &8- �ffddChange Amount"
coinsengine-example-2:
slot: 5
currency: "CoinsEngine-money"
material: "GOLD_NUGGET"
name: "�ffdd&lCoinsEngine Money"
lore:
- "&7%player%'s offer"
- ""
- " &7- &fAmount: �ffdd%amount% EXP"
- ""
- "�ffdd&l> �ffddClick &8- �ffddChange Amount"
Last modified: 16 December 2024