== 方块经济 ==
它是什么:
这是一个轻量级插件,允许玩家通过挖矿、挖掘以及在世界中造成破坏来赚取金钱。它不会为“玩家放置的方块”支付奖励——因此不能通过自己建造的方块来刷钱。
为什么不直接使用职业插件?
有些服务器不想使用完整的职业系统,但希望在不导致市场泛滥的前提下增强其经济体系——Block Economy 可以实现这一点。
它与 <xx> 经济插件兼容吗?
如果你的金钱插件与 Vault 兼容,那么它应该能正常工作。如果不兼容,请通过私信联系我,以便我们进行修复。
它是如何工作的?
BE 使用一个 config.yml 文件来追踪是否应对某个方块发放奖励——首次加载插件时,它会自动生成配置文件,并使用方块 0(因为你无法破坏空气……)提供一个示例。
配置文件如下:
main:
debug: false
announce: false
defaultPrice: 5
allowMCMMO: false
block:
'0':
override: 5 // 忽略乘数/默认值 - 这是奖励金额
multiplier: 1 // 每个方块的奖励 = defaultPrice * 此值 - 请使用其中一项。
chance: 50 // 破坏该方块获得奖励的概率百分比
关于方块 ID 的说明 本插件会考虑数据值:例如 17:2(云杉木)与 17:0(橡木)是不同的值。
- Debug(调试):开启或关闭调试模式。开启后,当涉及插件的操作发生时,控制台会频繁刷屏输出许多消息——除非你正在对其进行开发,否则建议保持关闭。
- Announce(公告):告知玩家他们获得了金钱——除非你的发放频率非常低,否则建议保持关闭。
- defaultPrice:每个方块默认获得的金额,可由各方块定义的修饰符修改。
- allowMCMMO:目前尚不可用。如果玩家使用了 Mcmmo 技能(如 SuperBreaker 或 GigaDrill),将禁用奖励发放。
添加方块时,请添加修饰符(modifier)或覆盖值(override),二者选其一。覆盖值直接指定固定奖励金额。修饰符则用于调整默认金额——例如:若 defaultPrice 为 5,黑曜石的修饰符为 10,则破坏一块黑曜石将获得 5 * 10 的奖励。
设置、添加或更改数据
在 2.3 版本之前,所有更改都必须在配置文件中完成。从 2.3 版本开始,新增了在线命令以支持无需重载即可编辑。
- /blecon add 12:1 <- 将‘红砂’添加到数据库,值为 0
- /blecon set 12:1 override 0.50 <- 设置每破坏一个方块的奖励为 0.50 美元
- /blecon set 12:1 chance 10 <- 使奖励仅在 10% 的情况下触发
每次更改后配置文件会自动保存——或者,你仍可以离线编辑,然后执行 “/blecon reload” 命令将更改应用到游戏中!
示例配置
hdgraming 提供了一个示例配置文件——其中包含了 Minecraft 中当前存在的所有方块!当然,你需要自行筛选并根据需要调整各项设置,但它是一个很好的起点!
示例配置
待办事项
== Block Economy ==
What it is:
A lightweight plugin that allows a player to earn money by mining, digging, and otherwise being destructive in the world. It does NOT Pay out on player-placed-blocks - so no farming your own builds.
Why not just use a job plugin?
Some servers don't want to use the entire job system, but want to bolster their economy without flooding the market - Block Economy allows that.
Does it work with <xx> Economy plugin?
If your money plugin is compatible with Vault, it should work with no issues. If it does not, please contact me here via PM so we can get it fixed.
How does it work?
BE uses a config.yml file to track if it is supposed to pay out on a block or not - the first time you load the plugin, it will automatically generate the config file and provide you with an example using block 0 (since you can't break air ...)
The config:
main:
debug: false
announce: false
defaultPrice: 5
allowMCMMO: false
block:
'0':
override: 5 // Ignore Muplier/Default - This is the reward
multiplier: 1 //How much * defaultPrice per Block - Use one OR the other.
chance: 50 // Percentage chance to get the reward for breaking the block
Note Regarding Block ID This plugin takes into consideration data values: ie: 17:2 (Spruce Wood) is a different value than 17:0 (Oak wood).
- Debug: Turns on and Off debug mode - with debug mode on, many messages will spam the console when things involving hte plugin occur - recommended you leave this off unless you're developing on it.
- Announce: Tell the player they earned money - Recommended to also remain off, unless your payouts are very rare.
- defaultPrice: The default amount a block gives, changed by the modifier (defined in each block)
- allowMCMMO: CURRENTLY DOES NOT WORK Will disable payouts if a player is using Mcmmo abilities such as SuperBreaker or GigaDrill.
When adding a block, add a modifier OR an override - not both. Override pays out that amount, period. Modifier will change the default amount - ie: defaultPrice is 5, modifier is 10 for obsidian, it will give 5 * 10 for breaking an obsidian block.
Setting, Adding or Changing Data
Prior to 2.3, all changes had to be made in the config. As of 2.3, Online commands have been added to allow editing without a reload.
- /blecon add 12:1 <- Will add 'Red Sand' to the database with values of 0
- /blecon set 12:1 override 0.50 <- Sets the payout to 0.50$ per block broken
- /blecon set 12:1 chance 10 <- Makes the payout only occur 10% of the time
The config will automatically save on each change - Alternately, you can still edit offline, and issue a "/blecon reload" to add the changes to game!
Example Configuration
hdgraming has provided an example configuration - this includes all blocks currently found within Minecraft! Of course, you will want to sift through it yourself and adjust things as needed, but it's a great place to start!
Example Configuration
TODO
评论 0
登录后参与评分
还没有评论,来抢沙发吧