LoseMoney
让你的玩家在死亡后失去金钱……
通过这个轻量级插件,你可以让玩家在死亡后扣除金钱。
你可以自由配置它,并设置玩家损失的金额,或者设置为拿走玩家的所有金钱。
玩家死亡后,插件会向其发送一条简短消息(你也可以自行配置),告知其损失的 $ 金额。
该插件不会从 OP 玩家以及拥有 “losemoney.ignore” 权限的玩家身上扣除金钱。
<font color='red'>配置文件中添加了新功能,更新时请删除插件文件夹!</font>
插件源码:链接
此插件依赖 Vault,请阅读以下内容!
设置方法:
只需将 .JAR 文件放入你的 “plugins” 文件夹并启动服务器即可。
插件会自动创建一个属于自己的文件夹,并在其中生成配置文件。
本插件基于 Vault API 编写,因此你必须安装 Vault 才能使用此插件。
配置说明:
- Settings.LoseAll - 如果设置为 true,当玩家死亡时,插件会扣除其全部金钱,并且忽略 Settings.LoseAmount。
- Settings.LoseAmount - 这是一个浮点数,表示玩家死亡时损失的金钱数量。如果 Settings.LoseAll 为 true,则此属性将被忽略。
- Settings.Percent - 如果为 true,插件会将 Settings.LoseAmount 视为玩家金钱的百分比
- Messages.LoseAll - 如果玩家死亡且 Settings.LoseAll 为 'true',将向该玩家发送此消息。
- Messages.LoseAmount - 如果玩家死亡且 Settings.LoseAll 为 'false',将向该玩家发送此消息。
注意:在 'Messages.LoseAmount' 中,您可以使用 '%amount' 字样(不带连字符),插件会自动将其替换为丢失的金额。
权限节点:
- 'losemoney.ignore'
拥有此权限的玩家不会扣除金钱。
致谢:
ZephyrSigmar - 作者
VADemon - 请求者
问:启动插件时出现 java.lang.UnsupportedClassVersionError 错误。我该怎么办?
如果您使用的是旧版插件,可能会出现此错误。请下载较新版本(标注为 Java 6 兼容),或者如果您想使用旧版本,请下载 Java 7。
更新日志:
v1.3:
-CB 1.4 版本!
-修复了事件处理,现在插件可以正常工作了...
v1.2:
-CB 1.1 版本!
-新增选项:按百分比扣除玩家金钱!
-改进金钱处理系统:现在插件支持两位小数(如果使用更多位数,将四舍五入到两位)
-现在可以使用任何权限系统:通过 Vault 挂钩 Permissions 插件!
-更改依赖类型为软依赖:现在如果没有安装 Vault,插件不会报错,而是会显示提示信息并正常关闭
-启动时检查经济系统
-从 JAR 包中移除了 .java 文件,源代码已移至 GitHub
v1.1:
-使用 Java 6 导出插件,因为部分用户在使用 Java 7 版本时遇到问题
-修复配置中的拼写错误(感谢 @VADemon 报告)
- 应请求,将插件前缀从 [LM] 更改为 [LoseMoney]
v1.0 - 插件发布。
<center>
<font size='6' color='blue'>LoseMoney</font>
<font color='gray'>Make your players lose money after death...</font>
With this lightweight plugin you can make your players lose money after death.
</center>
You can configure it freely and set the amount,how much money your players loses or you can set it to take all the money from the players.
After a player dies the plugin sends him a short message (you can configure it too) with the amount of $ the player lost.
The plugin doesn't take money from OPs and players who have "losemoney.ignore" permission.
<font color='red'>New feature added to config,please delete plugin's folder when updating!</font>
Plugin source: Link
This plugin uses Vault,please read below!
How to setup:
Simply put the .JAR file in your "plugins" folder and start your server.
The plugin will automatically create a folder for itself,and a configuration file in it.
This plugin is wrote around the Vault API so you must install Vault to use this plugin.
Configuration:
- Settings.LoseAll - If it's on true when a player dies the plugin takes all of his money,and it's going to ignore Settings.LoseAmount.
- Settings.LoseAmount - It's a floating-point number,it's the amount of how much money a player lose if he dies.If the Settings.LoseAll is true this property going to be ignored
- Settings.Percent - If it's on true the plugin will handle Settings.LoseAmount as a percent of the player's money
- Messages.LoseAll - This message is going to be send to a player if he dies,and the Settings.LoseAll is 'true'.
- Messages.LoseAmount - This message is going to be send to a player if he dies and the Settings.LoseAll is 'false'.
Note: In the 'Messages.LoseAmount' you can use the '%amount' word (without the ' -s) and the plugin will automatically change this to the lost amount of money.
Permission nodes:
- 'losemoney.ignore'
The plugin will not take money from players with this permission.
Credits:
ZephyrSigmar - Author
VADemon - Requester
Q:When i start the plugin i get an java.lang.UnsupportedClassVersionError error.What should i do?
You can get this error if you're using the old version of the plugin.Please download a newer version,what is wrote around Java 6,or if you want to use the old version please download Java 7.
Changelog:
v1.3:
-CB 1.4 Version!
-Fixed the event handling,now the plugin works again...
v1.2:
-CB 1.1 Version!
-Added new option: Take player's money in percent!
-Improved money handling system: Now the plugin works with 2 decimal points (if you use more it will round it to 2)
-Now can use any permission system: Permissions is getting hooked by Vault!
-Changed depend to soft-depend: Now if you dont have Vault it won't drop you errors,it will inform you in message and shut down properly
-Check for economy system on startup
-Removed .java files from JAR,source goes to GitHub
v1.1:
-Exported the plugin with Java 6, because of some user had problem with the Java 7 version
-Fixed typo in config (thanks @VADemon for reporting)
-Changed plugin's prefix from [LM] to [LoseMoney] for request
v1.0 - Release of the plugin.
评论 0
登录后参与评分
还没有评论,来抢沙发吧