Pour ajouter une économie dans le fichier de configuration il suffit de suivre l'exemple si dessous:
# A value that identifies your economy in the file is not used.economyName:# Name of the economy, the name can be specified in the itemsname:vault# Economy type, type:VAULT# Placeholder to display the pricecurrency:"%price%$"# Activate or not the economyisEnable:true# Message if the player does not have the money for a purchase.denyMessage:"&cYou don’t have enough money to buy this."
Attention, for some economy you need to add more information. As for example for the econometric ITEM and COINSENGINE. To know what you need to add please look at the file if below.
economies.yml
#########################################################################################################################################
## ███████╗░██████╗██╗░░██╗░█████╗░██████╗░# ╚════██║██╔════╝██║░░██║██╔══██╗██╔══██╗# ░░███╔═╝╚█████╗░███████║██║░░██║██████╔╝# ██╔══╝░░░╚═══██╗██╔══██║██║░░██║██╔═══╝░# ███████╗██████╔╝██║░░██║╚█████╔╝██║░░░░░# ╚══════╝╚═════╝░╚═╝░░╚═╝░╚════╝░╚═╝░░░░░## Documentation : https://zshop.groupez.dev/# Sponsor : https://serveur-minecraft-vote.fr/## Economy available:# - ITEM (Use items like economy, for example gold)# - LEVEL (Minecraft player level)# - EXPERIENCE (Minecraft player level experience point)# - VAULT (requires https://www.spigotmc.org/resources/vault.34315/)# - PLAYERPOINTS (requires https://www.spigotmc.org/resources/playerpoints.80745/)# - VOTINGPLUGIN (requires https://www.spigotmc.org/resources/votingplugin.15358/)# - TOKENMANAGER (requires https://www.spigotmc.org/resources/tokenmanager.8610/)# - COINSENGINE (requires https://www.spigotmc.org/resources/84121/)##########################################################################################################################################
economies:# Default EconomyVAULT:name:vault# Name of the economy, the name can be specified in the itemstype:VAULT# Economy typecurrency:"%price%$"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough money to buy this." # Message if the player does not have the money for a purchase.
# Economy with an item, here diamondITEM1:name:item_diamond# Name of the economy, the name can be specified in the itemstype:ITEM# Economy typecurrency:"%price% diamond%s%"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough money to buy this." # Message if the player does not have the money for a purchase.
item:# Configure the item : https://docs.zmenu.dev/configurations/itemsmaterial:DIAMOND# Economy with an item, here emeraldITEM2:name:item_emerald# Name of the economy, the name can be specified in the itemstype:ITEM# Economy typecurrency:"%price% emerald%s%"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough money to buy this." # Message if the player does not have the money for a purchase.
item:# Configure the item : https://docs.zmenu.dev/configurations/itemsmaterial:EMERALD# Minecraft player level experience pointEXPERIENCE:name:experience# Name of the economy, the name can be specified in the itemstype:experience# Economy typecurrency:"%price% xp"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough experience to buy this." # Message if the player does not have the money for a purchase.
# Minecraft player levelLEVEL:name:level# Name of the economy, the name can be specified in the itemstype:LEVEL# Economy typecurrency:"%price% level"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough level to buy this." # Message if the player does not have the money for a purchase.
playerpoints:name:playerpoints# Name of the economy, the name can be specified in the itemstype:playerpoints# Economy typecurrency:"%price% P"# Placeholder to display the priceisEnable:true# Activate or not the economy denyMessage: "&cYou don’t have enough points to buy this." # Message if the player does not have the money for a purchase.
# coinsEngine:# name: coinsengine # Name of the economy, the name can be specified in the items# type: coinsengine # Economy type# currency: "%price% C" # Placeholder to display the price# isEnable: true # Activate or not the economy# currencyName: "coins" # Coins engine currency name # denyMessage: "&cYou don’t have enough points to buy this." # Message if the player does not have the money for a purchase.