
XPStrength
你可以允许玩家在特定等级获得加成——当玩家达到你设定的某个等级时,他们将获得你设定的攻击伤害加成。你可以定义任意多个等级。
功能
- 切换 - 你可以使用 /xpbonus 命令来切换等级-攻击加成。如果你的等级低于你设定的最低等级(脚本会自动从配置文件中得出),则无法使用 /xpbonus 命令。如果你高于最低等级,开启 /xpbonus 后若掉到 30 级以下(参见经验流失),该功能将自动关闭。玩家的 /xpbonus 状态会被保存。
- 权限 - 权限节点为 xpstrength.bonus。如果玩家没有此权限,将无法使用 XPStrength 的任何功能。
- 经验流失 - 每次你造成伤害时(可配置)都会损失经验值。有 50% 的概率你会损失经验值(损失的数值等于你造成的伤害值——例如造成 10 点伤害就损失 10 点经验值),略低于 50% 的概率你不会损失经验值,还有 1% 的概率你会损失 双倍于你造成伤害的经验值。
- 用户友好的配置文件 - 存在一个配置文件,允许用户轻松修改所有等级及其对应的加成。它使用 .txt 格式而非 .yml,以避免令人头疼的制表符错误。
- 可自定义的语言文件 - 包含插件发送的所有消息的文件,因此用户可以通过简单的操作自定义每一条消息。
- 等级上限 - 你可以设置一个玩家无法绕过的等级上限。
安装
安装方法很简单:只需将 .jar 文件放入你的 /plugins/ 文件夹并启动服务器。在 /plugins/XPStrength/ 目录下可以找到用户的账户数据(我不确定你为什么想编辑这些内容,但如果因为某些原因某用户的账户损坏了,请提交错误报告然后删除该文件。)
插件会自动创建一个配置文件,其中包含一些默认值供你参考如何修改;如需更多关于配置文件的说明,可以点击这里。
插件会自动创建一个使用默认英文值的语言文件。你可以自行阅读并修改该语言文件;如需更多关于语言文件的说明,可以点击这里。
papand13 好心创建了一个配置编辑器,可以在这里找到。
权限
XPStrength 有两个权限节点。
- xpstrength.bonus - 允许玩家从 XPStrength 中获得伤害加成。
- xpstrength.bypass.cap - 允许玩家绕过等级上限。
- xpstrength.bypass.drain - 允许玩家绕过经验流失。
致谢!
感谢阅读,并可能使用我的插件。如果你有任何建议或发现错误,请提交它们,我会查看错误并考虑你的建议!
协助开发
有兴趣帮助开发 XPStrength 吗?前往 GitHub 仓库 并 fork 它以做出贡献。感谢你的帮助!

XPStrength
You can allow players to achieve bonuses at certain levels - when they have a certain level, defined by you, they will get a certain bonus to their attack damage, defined by you. You can define as many levels as you want.
Features
- Toggling - You can use /xpbonus to toggle the level-attack bonus. If your level is lower than the lowest level defined by you (the script works this out automatically from the config file) then it will not let you use the /xpbonus command. If you are above the lowest level, you toggle the /xpbonus on and then you drop to below level 30 (see XP draining) it will be automatically turned off. The player's /xpbonus saves.
- Permissions - The permission node is xpstrength.bonus. If the player doesn't have this, they will not be able to use any of the XPStrength features.
- XP draining - You will (configurable) lose xp every time you hit. There is a 50% chance that you will lose xp (you will lose the amount of hearts that you hit - take away 10 hearts and you lose 10 xp), a slightly-less-than-50% chance that you will not lose xp, and a 1% chance that you will lose double the amount that you hit.
- User-friendly config - There is a configuration file that allows the user to modify all the levels and their bonuses easily. It uses .txt rather than .yml to avoid the pesky tab errors.
- Customisable language files - There is a file containing every message sent by the plugin, so the user can customise every single message at the touch of a button.
- Level cap - You can set a level cap that players cannot bypass.
Installation
To install, simply place the .jar in your /plugins/ folder and start the server. Inside /plugins/XPStrength/ you can find the user's accounts (I'm not sure why you'd want to edit these, although if for some reason a user's account breaks, submit a bug report and then delete the file.)
The plugin will automatically create a config file using some default values for you to get the idea of how to modify it, although for more information on the configuration file you can click here.
The plugin will automatically create a language file uses the default English values. You can modify the language file yourself by reading it, although for more information on the language file you can click here.
A configuration editor has been kindly created by papand13 and can be found here.
Permissions
There are two permissions nodes for XPStrength.
- xpstrength.bonus - this allows the player to gain a damage bonus from XPStrength.
- xpstrength.bypass.cap - this allows the player to bypass the level cap.
- xpstrength.bypass.drain - this allows the player to bypass the experience drain.
Thanks!
Thanks for reading, and possibly using my plugin. If you have any suggestions or bugs, submit them and I will look at the bugs and consider the suggestions!
Helping
Are you interested in helping develop XPStrength? Head over to the GitHub repository and fork it in order to contribute. Thanks for the help!
评论 0
登录后参与评分
还没有评论,来抢沙发吧