Coins
Coins is a plugin that allows players to collect coins for killing mobs and mining precious blocks. It also comes with the ability to withdraw balance into physical coins. Players can lose (and drop) coins on death. This plugin can be used for drop parties, and is highly configurable.
Required plugins:
- Vault, and
- an economy supportive plugin (like Essentials)
Supported languages: English (en-US), Nederlands (nl-NL), Español (es-ES), français (fr-FR), Italiano (it-IT), 简体中文 (zh-CN), Deutsch (de-DE), Svenska (sv-SE), עברית (he-IL), Русский (ru-RU), Tiếng Việt (vi-VN), or custom
Quick links:
- Original project on Spigot
- Star this repository on GitHub
- Contact me on Discord
- Consider donating to the author
Description
This plugin allows your players to receive one or more coins after they have killed a mob or player. The same is possible for mining ores. Next to this, it is possible to configure losing money and drop coins on player death. Balance can be withdrawn into physical coins. The config explains a lot and is configurable in config.yml. Click to see the default config.
It is highly recommended that you use Paper, because this makes it possible to pick up coins with a full inventory.
Showcase of coins dropping after a mob was killed:

Commands
| Command | Description |
|---|---|
/withdraw <value> [amount] | Withdraw money from your balance into physical coins. |
/coins drop <player/x,y,z[,world]> <amount> [radius] [worth] | Drop coins around a player or location. An amount and radius can be specificied, and the value of each coin with 'worth'. |
/coins remove [radius/all] | Remove coins in a radius or all of them in the world. |
/coins settings [page] | List all the currently loaded settings from the config. |
/coins reload | Reload the config to update all settings in-game. |
/coins version | Check the version of the plugin and check if there's an update. |
/coins toggle | Enable or disable coin drops and withdraw access. |
Configuration and features
Players will receive a random amount of money after they pick up a coin: by default $3 to $8. You can change this in the config:
money-amount:
from: 3.0
to: 8.0
You can disable a few features too, if you want. By default:
- players drop 3 coins;
- mobs from spawners are ignored;
- passive mobs don't drop a coin.
These default values can be changed in the config. You can also make mobs from spawners and passive mobs drop coin(s). There are also permission nodes you can give to players when these settings are set to false. Default settings:
player-drop: true
spawner-drop: false
passive-drop: false
It's possible to make mobs drop different amount of money. The Ender Dragon drops 50 coins, and players drop 3 coins by default. You can change this. If you want Endermen to drop no coins, add it:
mob-multiplier:
'minecraft:ender_dragon': 50
'minecraft:player': 3
'minecraft:enderman': 0
Mining can also be rewarded by letting coins drop. By default, coins drop with a 20% chance for configured blocks. The default value down here is 0.20, meaning 20% (1 coin per 5 blocks mined). Set to 0 to disable dropping coins for blocks.
mine-percentage: 0.20
When coins get in hoppers, players can pick them out and the money will be given to them, and the coin will disappear, just like on normal pickup of a coin.
Coins immediately get deposited when found in a hopper:

Coins are not stacked in the image above, but you can make coins stack.
Coins have a different pick up sound compared to picking up other items. You can change it to whatever sound you like, even a custom sound from resource packs. The list of available sounds can be found at the suggestions of /playsound. You can also change the pitch and volume of the pickup sound.
Coins don't drop 100% of the time by default, but 90%.
drop-chance: 0.90
Players can also lose money on death, either a random amount, or a random percentage of their current balance. You can decide how much, or even disable it. It is also possible to completely disable coins in specific world(s).
Withdraw
The plugin provides a withdraw system and a command for this (/withdraw): This lets players withdraw balance into a physical coin that will be given to them. The money can then be regained by either picking up the coin, or by clicking the coin. The withdrawn coins can be moved to any inventory.
Permissions
| Permission | Description |
|---|---|
| coins.withdraw | Access to /withdraw, and the ability to withdraw and deposit coins. |
| coins.bypass.lose_on_death | Bypass the mechanic that lets your lose coins on death. |
| coins.bypass.percentage_hit | Bypass the minimum percentage to hit a mob before it drops coins. |
| coins.bypass.location_limit | Bypass the limit for killing mobs in a single location. |
| coins.drop.spawner_mobs | Always get coins for killing mobs from spawners. |
| coins.drop.split_mobs | Always get coins for killing split mobs, like slimes. |
| coins.drop.hostile_mobs | Always get coins for killing hostile mobs. |
| coins.drop.passive_mobs | Always get coins for killing passive mobs. |
| coins.drop.players | Always get coins for killing other players. |
| coins.command.reload | Able to reload the plugin's config and language. |
| coins.command.settings | Able to see the currently loaded settings. |
| coins.command.drop | Able to use the /coins drop command. |
| coins.command.remove | Able to clear coins in a radius or the world. |
| coins.command.language | Able to see the currently loaded language. |
| coins.command.version | Able to see details about version and updates. |
| coins.command.toggle | Allows the /coins toggle command. |
| coins.disable | Remove the ability for the player to pick up coins. |
| coins.multiplier.n | Multiply dropped coins by n for this player. |
Language
Coins supports different languages. You can set the language in config.yml to anything. Find available default languages at 'Coins/locale'. You can add your own language by creating a JSON file and putting it in the language folder. Then you can use the file's name as language in the config.yml.
locale: 'en-US' # default, or
locale: 'xx-YY' # if you made yours 'xx-YY.json' in folder 'locale'
You can submit your language if you want, so that it can be added to the plugin by default. Just send me a message, or do a pull request to the locale folder on GitHub.
Showcase
Withdraw balance into physical coins:

Drop coins around a player (/coins drop):

Remove coins in a radius (/coins remove):

Final remarks
This is my first plugin. Hope you enjoy 😛. If you enjoy the plugin, consider leaving a donation, thanks! You can join my survival server too @ survival.rocks!
bStats
Support
Leave any suggestions in the Discord server. Errors and issues can be reported on GitHub or in the Discord server.

