|
| 1 | +# EssentialsX Economy |
| 2 | +The built in economy API will redirect to any other detected economy system such as vault. This means you can use EssEco api as a economy api instead of vault if your plugin is dependent on Essentials. |
| 3 | +## Commands |
| 4 | +There are a number of commands for use in-game, including but not limited to: |
| 5 | + - /eco, /economy: Allows you to take, give, or reset a player's money. |
| 6 | + - /sell: Sells an item and amount at the price specified in the worth.yml. |
| 7 | + - /balance, /bal, /money: Displays the current balance of a player. |
| 8 | + - /baltop, /balancetop: Displays a list of the richest people. |
| 9 | + - /pay: Pays a specified player from your balance. |
| 10 | +## Configuration |
| 11 | +There are a number of different options related to the internal economy system which can be found in the `config.yml`. |
| 12 | +Most of the config options are explained adequately in the comments: |
| 13 | +```yml |
| 14 | +# Defines the balance with which new players begin. Defaults to 0. |
| 15 | +starting-balance: 0 |
| 16 | + |
| 17 | +# Defines the cost to use the given commands PER USE. |
| 18 | +# Some commands like /repair have sub-costs, check the wiki for more information. |
| 19 | +command-costs: |
| 20 | + # /example costs $1000 PER USE |
| 21 | + #example: 1000 |
| 22 | + # /kit tools costs $1500 PER USE |
| 23 | + #kit-tools: 1500 |
| 24 | + |
| 25 | +# Set this to a currency symbol you want to use. |
| 26 | +# Remember, if you want to use special characters in this document, |
| 27 | +# such as accented letters, you MUST save the file as UTF-8, not ANSI. |
| 28 | +currency-symbol: '$' |
| 29 | + |
| 30 | +# Enable this to make the currency symbol appear at the end of the amount rather than at the start. |
| 31 | +# For example, the euro symbol typically appears after the current amount. |
| 32 | +currency-symbol-suffix: false |
| 33 | + |
| 34 | +# Set the maximum amount of money a player can have. |
| 35 | +# The amount is always limited to 10 trillion because of the limitations of a java double. |
| 36 | +max-money: 10000000000000 |
| 37 | + |
| 38 | +# Set the minimum amount of money a player can have (must be above the negative of max-money). |
| 39 | +# Setting this to 0, will disable overdrafts/loans completely. Users need 'essentials.eco.loan' perm to go below 0. |
| 40 | +min-money: -10000 |
| 41 | + |
| 42 | +# Enable this to log all interactions with trade/buy/sell signs and sell command. |
| 43 | +economy-log-enabled: false |
| 44 | + |
| 45 | +# Enable this to also log all transactions from other plugins through Vault. |
| 46 | +# This can cause the economy log to fill up quickly so should only be enabled for testing purposes! |
| 47 | +economy-log-update-enabled: false |
| 48 | +``` |
| 49 | +EssentialsX adds the ability to specify the minimum transaction amount to prevent the dreaded microtransactions: |
| 50 | +```yml |
| 51 | +# Minimum acceptable amount to be used in /pay. |
| 52 | +minimum-pay-amount: 0.001 |
| 53 | +``` |
| 54 | +EssentialsX adds currency format to improve the localization. You may uncomment the currency-symbol-format-locale or uncomment currency format and create your own: |
| 55 | +```yml |
| 56 | +# The format of currency, excluding symbols. See currency-symbol-format-locale for symbol configuration. |
| 57 | +# |
| 58 | +# "#,##0.00" is how the majority of countries display currency. |
| 59 | +#currency-format: "#,##0.00" |
| 60 | + |
| 61 | +# Format currency symbols. Some locales use , and . interchangeably. |
| 62 | +# Some formats do not display properly in-game due to faulty Minecraft font rendering. |
| 63 | +# |
| 64 | +# For 1.234,50 use de-DE |
| 65 | +# For 1,234.50 use en-US |
| 66 | +# For 1'234,50 use fr-ch |
| 67 | +#currency-symbol-format-locale: en-US |
| 68 | +``` |
| 69 | +#### Permissions |
| 70 | +[Permissions for commands can be found here](https://essinfo.xeya.me/permissions.html) (Community maintained list) |
| 71 | + |
| 72 | +Important permissions include `essentials.eco` and `essentials.pay`. |
| 73 | +## Signs & Shops |
| 74 | +Signs may be used to create shops where players can buy and sell items/blocks to the server in exchange for money. |
| 75 | +#### Signs |
| 76 | +To create a sign, ensure that you have the `signs.create.trade` permission and that you have uncommented `- buy` and `- sell` under `enabledSigns:` in the config.yml |
| 77 | +If a sign is placed and the following is typed: |
| 78 | +``` |
| 79 | +[Buy] |
| 80 | +1 |
| 81 | +Dirt |
| 82 | +$1 |
| 83 | +``` |
| 84 | +The sign will allow players with the `signs.use.buy` permission to purchase 1 dirt for $1 when left clicked. If `[Buy]` is changed to `[Sell]` and the player has the respective permission, the player may sell 1 dirt to the server in exchange for $1. |
| 85 | +#### Shops |
| 86 | +To prevent players exploiting the the economy by purchasing from the server using a buy sign and `/sell`, only create Buy signs at or above the rates found in `worth.yml`. |
| 87 | +A good server shop typically offers bulk Sell signs at better rates than the `worth.yml` to encourage players to use the shop over `/sell`. |
| 88 | +Alternatively, if players aren't given the `essentials.sell` permission their only option is to trade between players or go to the shop. |
0 commit comments