需要 Vault 来管理权限和经济系统
如果您是从 1.4 版本升级,请下载新的配置文件 此处。
一个简单的插件,允许玩家对其它玩家发布赏金。
支持 Permissions、Economy 和 MySQL。
有两种类型的赏金:
1 - 公共赏金:由服务器发布的针对玩家的赏金。当一名玩家被击杀时,该赏金会给予击杀者,并减少固定数值。同时,击杀者的赏金也会增加固定数值。
2 - 玩家发布赏金:由玩家发布的赏金。玩家可以随意发布任意数量的赏金,但必须确保在发布时背包中有足够的金币。
命令非常简单:
/bounty <赏金类型> <玩家名称> : 列出指定玩家的所有赏金(包括公共赏金和玩家发布赏金)。如果不带任何参数使用,则显示你自己的赏金。你可以指定赏金类型。可以是 communal(c)或 player set(ps)。
/bountylist : 列出服务器上前十名的赏金
/placebounty <玩家名称> <金额> : 对指定玩家发布金额为设定值的赏金
/setcbounty <玩家名称> <金额>: 设置用户的公共赏金
/setpsbounty <玩家名称> <金额> : 设置用户的玩家发布赏金
/addcbounty <用户名> <金额>: 增加用户的公共赏金
/addpsbounty <玩家名称> <金额> : 增加用户的玩家发布赏金
/bountyreload: 重载插件
/bountyinfo: 显示 SimpleBounty 的当前版本
/convertdb: 在 MySQL 和扁平文件之间进行转换
/bountyload: 从配置的保存系统中加载数据。
/paybounty <ps || c> <金额>: 允许用户支付他们的赏金。
权限:
- bounty.* - 授予所有非管理员命令的访问权限。
- bounty.bounty
- bounty.bountylist
- bounty.placebounty
- bounty.paybounty
- bounty.admin.* - 授予管理员命令的访问权限
- bounty.admin.setcbounty
- bounty.admin.setpsbounty
- bounty.admin.addcbounty
- bounty.admin.addpsbounty
- bounty.admin.reloadbounty
- bounty.admin.bountyinfo
- bounty.admin.convertdb
- bounty.admin.bountyload
配置:
communalbounty:
enable: - 启用或禁用公共赏金
increment: - 玩家击杀他人时,其赏金应增加的数值
decrement: - 玩家被击杀时,其赏金应减少的数值。
changenobounty: 如果为 true,只有当被击杀者没有赏金时,玩家的赏金才会发生变化。
psbounty:
enable: - 启用或禁用玩家发布赏金(true 或 false)
min: - 允许的最低赏金金额(整数)
max: - 允许的最高赏金金额(整数)
showvictimmessages: - 启用或禁用被击杀者的提示信息。(true 或 false)
showkillermessages: - 启用或启用击杀者的提示信息。(true 或 false)
forcegoldecon: - 强制使用以金锭为货币的经济系统。(true 或 false)
mySQL:
enabled: - 启用或禁用 MySQL。(true 或 false)
host: '' -
port: ''
database: ''
username: ''
password: ''
关于 forcegoldecon 设置的说明。如果设置为 true,无论是否安装了经济模组,都将强制使用金锭作为货币。
关于 changenobounty 设置的说明。如果为 true,如果击杀者击杀了一名有赏金的玩家,击杀者的赏金将不会发生变化。这里的逻辑是赏金猎人不会因为获得赏金而受到惩罚。他们仍然会因为击杀玩家而获得金钱。如果为 false,双方的赏金都会发生变化。
转换为 MySQL
- 首先,在配置中启用 SQL 并重载插件(/reload 或 /bountyreload)
- 输入 /convertdb,应该会显示一条成功消息。
- 通过执行 /blist 验证信息。
转换为扁平文件
- 在配置中禁用 SQL 并重载插件(/reload 或 /bountyreload)
- 确保扁平文件不存在。如果需要,请从 /simplebounty 文件夹中删除它。
- 输入 convertdb,应该会显示一条成功消息。
- 通过执行 /blist 验证信息
此插件目前仅支持整数作为货币值。请仅使用整数。这将在未来版本中更改。
Requires Vault for permissions and economy
If you are upgrading from 1.4, please download the new config file here.
A simple plugin that allows the user to place bounties on players.
Supports Permissions, Economy and MySQL.
There are two types of bounties:
1 - Communal Bounty: A bounty placed by the server on players. When a player is killed, there bounty is given to the player and it decreases by a set amount. The killer's bounty is increased by a set amount as well.
2 - User Placed Bounty: A bounty that is placed by a user. User is allowed to place as many bounties as they want, but they must have the gold in their inventory at a given time.
Commands are simple:
/bounty <bounty type> <playername> : List the bounty (Communal + User Placed) for the player name given. If used without any arguments, it gives your bounty. You can specify the bounty type. Either communal (c) or player set (ps).
/bountylist : Lists the top ten bounties on the server
/placebounty <playername> <amount> : Places a bounty on the player for the amount stated
/setcbounty <playername> <amount>: Sets the users communal bounty
/setpsbounty <playername> <amount> : Sets the users player set bounty
/addcbounty <username> <amount>: Adds to the users communal bounty
/addpsbounty <playername> <amount> : Adds to the users player set bounty
/bountyreload: Reloads the Plugin
/bountyinfo: Gives the current version of SimpleBounty
/convertdb: Converts between mySQL and flatfiles and vice versa
/bountyload: Loads from the configured save system.
/paybounty <ps || c> <amount>: Allows a user to pay of their bounty.
Permissions:
- bounty.* - Gives access to all non-administrative commands.
- bounty.bounty
- bounty.bountylist
- bounty.placebounty
- bounty.paybounty
- bounty.admin.* - Gives access to admin commands
- bounty.admin.setcbounty
- bounty.admin.setpsbounty
- bounty.admin.addcbounty
- bounty.admin.addpsbounty
- bounty.admin.reloadbounty
- bounty.admin.bountyinfo
- bounty.admin.convertdb
- bounty.admin.bountyload
Configuration:
communalbounty:
enable: - Enables or disables communal bounties
increment: - How much a player's bounty should increase when they kill someone
decrement: - How much a player's bounty should decrease when they are killer.
changenobounty: If true, a player's bounty will change only if the person they killed has no bounty.
psbounty:
enable: -Enables or disables player set bounties (true or false)
min: -The minimum allowable bounty (Integer)
max: -The maximum allowable bounty (Integer)
showvictimmessages: -Enables or disables a victim's message when they are killed. (true or false)
showkillermessages: -Enables or disables a killer's message when they kill. (true of false)
forcegoldecon: -Forces the use of an economy that uses gold ignots. (true or false)
mySQL:
enabled: -Enables or disables MySQL. (true or false)
host: '' -
port: ''
database: ''
username: ''
password: ''
A note about the forcegoldecon setting. If it's true, the use of gold ignots for currency will be enforced regardless if you have an economy mod
A note about the changenobounty setting. If true, the killer's bounty will not change if they kill someone with a bounty on their head. The logic for this is that a bounty hunter is not punished for getting a bounty. They still get the money for killing the player. If false, both bounties change.
To convert to MySQL
- First, enable SQL in the configuration and reload the plugin (/reload or /bountyreload)
- Type in /convertdb and it should show you a message saying it was successful.
- Verify information by issuing a /blist.
To convert to flatfile
- Disable SQL in the configuration and reload the plugin (/reload or /bountyreload)
- Make sure that the flat file does not exists. Delete it from the /simplebounty folder if needed.
- Type in convertdb and it should show you a message saying it was successful.
- Verify information by issuing a /blist
This plugin currently only supports integers as the monetary value. Please use whole numbers only. This will be changed in the future
评论 0
登录后参与评分
还没有评论,来抢沙发吧