AutoRanker 会在玩家满足其 LogBlock 历史记录中的特定条件(如放置方块数、破坏方块数以及在线时长)时,自动对玩家执行命令。
该插件的预期用途是让玩家随着在服务器上的工作积累而自动晋升到不同的等级。请注意,此用途需要一个单独的插件来协助执行排名命令,例如 bPermissions。
目前,该插件仅在玩家登录时检查其是否满足各个等级的要求。如果服务器管理员有这方面的兴趣,我可以使其定期为每个已登录的玩家进行检查。
用法配置
配置文件位于 plugins/AutoRanker/config.yml。
在配置文件中提供一组等级列表。对于每个等级,需提供达成该等级所需的要求集合,例如:
created:放置的方块数
destroyed:破坏的方块数
daysonline:自玩家首次登录以来的天数
hoursonline:玩家累计在线的小时数
haspermission:前置权限要求,例如基础组别所需的权限
-
hasnotpermission:后置权限要求,用于表明玩家已经拥有该等级或不应符合该等级的资格
- 如果你的组别继承自
group.… 权限,此处应填写授予该等级时应赋予的权限。否则可以留空。
对于每个等级,还需提供满足要求时应执行的命令,其中 {PLAYER} 将被替换为满足要求的玩家名称。
示例配置
以下是一个包含两个等级——builder 和 architect 的示例配置,使用 bPermissions 来管理玩家组。
ranks:
builder:
requirements:
daysonline: 2
hoursonline: 2
created: 1000
destroyed: 2000
haspermission: group.default
hasnotpermission: group.builder
commands:
- exec u:{PLAYER} a:setgroup v:builder
- say {PLAYER} has achieved Builder rank.
architect:
requirements:
daysonline: 60
hoursonline: 24
created: 10000
destroyed: 20000
haspermission: group.builder
hasnotpermission: group.architect
commands:
- exec u:{PLAYER} a:setgroup v:architect
- say {PLAYER} has achieved Architect rank.
命令与权限
- command:
/autorank reload
- permission:
autorank.reload(默认:op)
- 从配置文件中重新加载等级。
替代方案
- Autorank - 基于在线时长排名
- Ranker - 基于在线时长、持有金钱、击杀玩家数、击杀怪物数进行排名
依赖
需要 LogBlock。
若要使用 hours online 和 days online 等级要求,你必须在 LogBlock 配置中将 logPlayerInfo 设置为 true,例如:
logging:
logPlayerInfo: true
统计

AutoRanker automatically executes commands on players when the players have met certain requirements in their LogBlock history, in terms of number of blocks created and blocks destroyed, and time spent online.
The intended use case for this plugin is to have players automatically promoted through different ranks as the amount of their work on the server accumulates. Note that this use requires a separate plugin to facilitate ranking commands, such as bPermissions.
Currently the plugin checks if a player meets the requirements of each rank when they log in. If there is interest among server admins, I could make it check periodically for each player that is logged in.
Usage Configuration
The config file is plugins/AutoRanker/config.yml.
Provide a list of ranks in the configuration file. For each rank, provide the set of requirements for achieving that rank, such as the following:
created: blocks placed
destroyed: blocks destroyed
daysonline: days since the player's first login
hoursonline: hours the player has spent logged in
haspermission: a prerequisite permission, such as for a base group
-
hasnotpermission: a postrequisite permission, to indicate that a player already has this rank or otherwise shouldn't be eligible for it
- If your groups inherit
group.… permissions, this should be the permission that is to be granted for this rank. Otherwise it can be left blank.
For each rank, also provide the commands that should be executed when the requirements are met, in which {PLAYER} is replaced by the name of the player who has met the requirements.
Example configuration
Below is an example configuration with two ranks, builder and architect, using bPermissions to manage the player groups.
ranks:
builder:
requirements:
daysonline: 2
hoursonline: 2
created: 1000
destroyed: 2000
haspermission: group.default
hasnotpermission: group.builder
commands:
- exec u:{PLAYER} a:setgroup v:builder
- say {PLAYER} has achieved Builder rank.
architect:
requirements:
daysonline: 60
hoursonline: 24
created: 10000
destroyed: 20000
haspermission: group.builder
hasnotpermission: group.architect
commands:
- exec u:{PLAYER} a:setgroup v:architect
- say {PLAYER} has achieved Architect rank.
Commands & Permissions
- command:
/autorank reload
- permission:
autorank.reload (default: op)
- Reload the ranks from the config file.
Alternatives
- Autorank - rank based on amount of time played
- Ranker - rank based on amount of time played, money held, players killed, monsters killed
Requirements
LogBlock is required.
To use the hours online and days online rank requirements, you must have in your LogBlock configuration logPlayerInfo set to true, e.g.:
logging:
logPlayerInfo: true
Statistics

评论 0
登录后参与评分
还没有评论,来抢沙发吧