Documentation
Installation
- Download CoinTrade.jar and place it into your server’s plugins folder.
- Start the server to generate the default configuration files.
- Edit config.yml and messages.yml to suit your server’s needs.
- Reload the plugin or restart the server.
Configuration Overview (config.yml)
Language:
- language: en – Sets the default language (en, ru, ua).
Economy:
- mob-drop-min / mob-drop-max – Range of coins dropped per mob
- kill.ore-drop-min / ore-drop-max – Range of coins dropped when mining ores.
- ore-drop-chance-percent – Drop chance from ores.
- pay-commission-percent – Commission percentage on /pay transactions.
- pay-history-enabled – Enables or disables payment history tracking.
Death:
- enabled – Toggles the death penalty system.
- lose-percent-min / lose-percent-max – Percent range of balance lost on death.
- killer-receive-percent-min / killer-receive-percent-max – How much of the lost amount the killer receives.
- drop-as-physical-coins – If true, drops physical coins instead of transferring money.
Merchant:
- spawn-min-distance / spawn-max-distance – Minimum and maximum distance from players for merchant spawn.
- spawn-min-time-minutes / spawn-max-time-minutes – Spawn interval range.
- spawn-chance-percent – Chance of a merchant spawning.
- max-random-trades – Maximum number of trades offered by a merchant.
- merchant-lifetime-seconds – How long a merchant stays before despawning.
Trades:
Define any number of trades, including enchanted books, tools, or custom items.
Example:
- id: "enchanted_book_sharpness3"
cost: 12
material: ENCHANTED_BOOK
amount: 1
max-deals: 1
repeatable: true
enchantment: "DAMAGE_ALL"
level: 3
Commands
Command - Description (Permission)
/coins - Show your current balance
(All players)
/coins withdraw <amount> - Withdraw physical coins into your inventory
(All players)
/coins deposit <amount> - Deposit physical coins into your balance
(All players)
/pay <player> <amount> - Send coins to another player
(All players)
/coins add/remove <player> <amount> - Add or remove coins from a player's balance
(Admin)
/coins look <player> - View another player's balance
(Admin)
/coins clear <player> - Reset a player's balance
(Admin)
/coins history <player>
[limit] - View recent payment history
(Admin)
/merchant - Manually spawn a wandering merchant
(Admin)