ExpLevel 是一个自动升级插件。在 config.yml 文件中,你可以设置组别以及升级所需的经验值,插件将根据玩家的总经验值自动提升其等级。它还为玩家提供了 /stats 命令,用于显示当前拥有的总经验值、当前等级、下一等级所需经验值等信息。
命令
拥有 explevel.player 权限节点的玩家均可使用此功能。默认情况下该权限为 true(开启)。
| /expstats | 显示玩家的等级与经验统计信息。 |
| /stats | 同上 |
管理员(op)或拥有 explevel.admin 权限节点的玩家还可以访问以下其他命令:
| /explevel addexp <playername> <amount> | 为玩家增加指定数量的经验值 |
| /explevel subexp <playername> <amount> | 从玩家身上扣除指定数量的经验值 |
| /explevel setexp <playername> <newexp> | 将玩家的总经验值设置为指定数值 |
依赖项
此插件需要安装 Vault 插件。
它应能兼容 Vault 支持的任何权限管理插件。如果你发现某个特定权限插件存在问题,请告诉我,因为我并未测试所有插件。
总经验值
总经验值是玩家自创建以来累积的经验总和,由服务器进行记录,但玩家无法直接看到。玩家只能看到自己当前可用的经验值。当玩家使用经验值附魔时,其可用经验值会减少,但总经验值不会改变。我们正是依据这个总经验值来提升玩家等级。
如果管理员执行以下操作:
/explevel addexp LexLaiden 2000
则向 LexLaiden 的总经验值中增加 2000 点。如果新的总经验值达到了更高等级的范围,他将被提升至该更高阶级或组别。
/explevel subexp LexLaiden 4000
则从 LexLaiden 的总经验值中扣除 4000 点。如果新的总经验值低于当前等级的下限,他将被降级至较低的阶级或组别。
配置 config.yml
在 config.yml 文件的 Levels(等级)部分,你可以设置各个组别所需的经验值。
Levels:
Default: 0
Player: 2000
Moderator: 12500
你在 GroupManager 中定义的组名,需在此处的 Levels 部分使用。如果不想让某个组别生效,只需将其排除即可。你必须按照从低到高的顺序设置经验值,即最低等级设为 0,最高等级设为最大值。
Levels:
Peasant: 0
Apprentice: 2000
Journeyman: 4500
Master: 20000
Lord: 30000
子组别
你可以在权限插件的组别设置中使用 子组别(subgroups),但请务必不要将它们添加到 ExpLevel 的 config.yml Levels 部分。ExpLevel 同一时间只允许一个主组别。如果你添加了多个主组别,或将主组别添加到了子组别中,将会导致不可预期的结果。
论坛
有建议或遇到问题?- 请在论坛发帖
ExpLevel is an auto level up plugin. You setup your groups and exp values needed to advance in the config.yml file and it will auto advance player based on their Total Experience. It also gives the player a /stats command to display the total exp they have, what level thay are currently at, what the next level is and the exp needed to advance.
Commands
Anyone with explevel.player permission node. This is defaulted to true
| /expstats | Displays the players Level & Experience Statistics. |
| /stats | Same as above |
The op or anyone with explevel.admin permission node can also access these other commands
| /explevel addexp <playername> <amount> | Adds amount of experience points to a player |
| /explevel subexp <playername> <amount> | Subracts amount of experience from a player |
| /explevel setexp <playername> <newexp> | Sets a players experience to the new amount |
Dependency
This plugin requires the Vault plugin.
It should work with any permissions plugin that vault supports. Let me know if there is a problem with a certian permission plugin as I havent tested them all.
Total Experiance
Total Experiance is the accumulated experience through the existance of the player and is something the server keeps track of but the player never sees. They only see the Exp that they have avalible. When they use Exp to enchant, their avalible Exp decreases but not the Total Exp. This Total Exp is what we are using to advance the player.
If the admin does this:
/explevel addexp LexLaiden 2000
then 2000 exp are added to LexLaiden's Total Exp and if the new Total Exp is at a higher level range than his current level, he is promoted to the higher level or group.
/explevel subexp LexLaiden 4000
then 4000 exp are subtracted from LexLaiden's Total Exp and if the new Total Exp is at a lower level range than his current level, he is demoted to the lower level or group.
Setup Config.yml
In your config.yml file you set the experiance needed for your groups in the Levels section.
Levels:
Default: 0
Player: 2000
Moderator: 12500
Whatever you named your groups in GroupManager you use them in the Levels section. If you don't want a group to be included just leave them out. You MUST set the experience needed in order 0 to the highest value.
Levels:
Peasant: 0
Apprentice: 2000
Journeyman: 4500
Master: 20000
Lord: 30000
Subgroups
You may use subgroups in your permission plugin groups setup, but be sure you do not add them to ExpLevel config.yml Levels: Section. ExpLevel only allows one main group at a time. If you add more than one main group or add a main group to the subgroups it will cause you unexpected results.
Forums
Have a request or problem - post it on the forum
评论 0
登录后参与评分
还没有评论,来抢沙发吧