Coins
Coins 是一个插件,允许玩家通过击杀怪物和挖掘珍贵方块来收集金币。它还支持将余额提取为实体金币。玩家在死亡时会丢失(掉落)金币。此插件可用于掉落派对,并且具有高度可配置性。
版本 2 现已可用!
所需插件:
支持的语言: 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) 或自定义
快速链接:
Description
此插件允许玩家在击杀怪物或玩家后获得一枚或多枚金币。挖掘矿石时也可以获得金币。此外,还可以配置玩家在死亡时损失金钱并掉落金币。余额可以提取为实体金币。配置文件解释了很多内容,并在 config.yml 中进行配置。点击此处查看默认配置。
强烈建议使用 Paper,因为它允许背包已满时拾取金币。
展示击杀怪物后掉落金币的效果:
Commands
| Command |
Description |
/withdraw <value> [amount] |
从你的余额中提取金钱到实体金币中。 |
/coins drop <player/x,y,z[,world]> <amount> [radius] [worth] |
在玩家或位置周围掉落金币。可以指定数量和半径,以及每枚金币的价值 'worth'。 |
/coins remove [radius/all] |
移除特定半径内或整个世界中的所有金币。 |
/coins settings [page] |
列出当前加载的所有配置设置。 |
/coins reload |
重新加载配置文件以更新游戏内的所有设置。 |
/coins version |
检查插件版本并查看是否有更新。 |
/coins toggle |
启用或禁用金币掉落和提取权限。 |
Configuration and features
玩家在拾取金币后会获得随机金额的金钱:默认为 $3 到 $8。你可以在配置文件中更改此设置:
money-amount:
from: 3.0
to: 8.0
如果你愿意,也可以禁用一些功能。默认情况下:
- 玩家会掉落 3 枚金币;
- 忽略刷怪笼中的怪物;
- 被动型生物不掉落金币。
这些默认值可以在配置文件中更改。你也可以让刷怪笼生成的怪物和被动型生物掉落金币。当这些设置设为 false 时,你还可以为玩家分配相应的权限节点。默认设置如下:
player-drop: true
spawner-drop: false
passive-drop: false
可以让不同的怪物掉落不同数量的金钱。末影龙默认掉落 50 枚金币,玩家默认掉落 3 枚金币。你可以更改这些数值。如果你想让末影人不再掉落金币,请添加以下配置:
mob-multiplier:
'minecraft:ender_dragon': 50
'minecraft:player': 3
'minecraft:enderman': 0
挖掘也可以通过掉落金币来获得奖励。默认情况下,对于配置的方块,有 20% 的几率掉落金币。下面的默认值为 0.20,意味着 20%(每挖掘 5 个方块掉落 1 枚金币)。将其设置为 0 以禁用方块的金币掉落。
mine-percentage: 0.20
当金币进入漏斗时,玩家可以将其取出并获得金钱,同时金币消失,就像正常拾取金币一样。
发现漏斗中的金币时立即存入账户:
上图中的金币没有堆叠,但你可以让金币堆叠。
与拾取其他物品相比,拾取金币的声音不同。你可以将其更改为你喜欢的任何声音,甚至是资源包中的自定义声音。可用声音列表可在 /playsound 的建议中找到。你还可以更改拾取声音的音调和音量。
默认情况下,金币并非 100% 掉落,而是 90% 的概率掉落。
drop-chance: 0.90
玩家在死亡时也可以损失金钱,可以是随机金额,也可以是当前余额的随机百分比。你可以决定损失多少,甚至可以完全禁用它。也可以在特定的世界中完全禁用金币。
Withdraw
该插件提供了一个提款系统和相应的命令(/withdraw):这允许玩家将余额提取为实体金币并交给他们。然后可以通过拾取金币或点击金币来重新获得金钱。提取的金币可以移动到任何物品栏中。
Permissions
| 权限 |
描述 |
| coins.withdraw |
允许使用 /withdraw 命令,以及存取金币的能力。 |
| coins.bypass.lose_on_death |
绕过死亡时损失金币的机制。 |
| coins.bypass.percentage_hit |
绕过击杀怪物掉落金币所需的最小百分比限制。 |
| coins.bypass.location_limit |
绕过在单个地点击杀怪物的数量限制。 |
| coins.drop.spawner_mobs |
击杀刷怪笼生成的怪物时始终获得金币。 |
| coins.drop.split_mobs |
击杀分裂型怪物(如史莱姆)时始终获得金币。 |
| coins.drop.hostile_mobs |
击杀敌对生物时始终获得金币。 |
| coins.drop.passive_mobs |
击杀中立/被动生物时始终获得金币。 |
| coins.drop.players |
击杀其他玩家时始终获得金币。 |
| coins.command.reload |
能够重载插件的配置和语言文件。 |
| coins.command.settings |
能够查看当前加载的设置。 |
| coins.command.drop |
能够使用 /coins drop 命令。 |
| coins.command.remove |
能够在指定半径或整个世界范围内清除金币。 |
| coins.command.language |
能够查看当前加载的语言。 |
| coins.command.version |
能够查看版本及更新详情。 |
| coins.command.toggle |
允许使用 /coins toggle 命令。 |
| coins.disable |
移除玩家拾取金币的能力。 |
| coins.multiplier.n |
将该玩家掉落的金币数量乘以 n。 |
语言
Coins 支持多种语言。你可以在 config.yml 中将语言设置为任意值。在 'Coins/locale' 目录下可以找到可用的默认语言。你可以通过创建 JSON 文件并将其放入语言文件夹来添加自定义语言。然后,你可以在 config.yml 中使用该文件名作为语言标识。
locale: 'en-US' # 默认语言,或者
locale: 'xx-YY' # 如果你在 'locale' 文件夹中创建了名为 'xx-YY.json' 的文件
如果你想提交你的语言翻译,使其成为插件的默认语言之一,请给我发消息,或在 GitHub 的 locale 文件夹发起 Pull Request。
展示
将余额提取为实体金币:
在玩家周围投放金币(/coins drop):
在指定半径内清除金币(/coins remove):
结语
这是我的第一款插件。希望你能喜欢 ?。如果你喜欢这款插件,欢迎考虑捐赠,谢谢!你也可以加入我的生存服务器 @ survival.rocks!
bStats
支持
有任何建议请在 Discord 服务器 留言。错误和问题可以在 GitHub 上报告,也可以在 Discord 服务器 反馈。
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.
Version 2 is now also available!
Required plugins:
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:
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧