自动提升玩家等级
基于游戏时长或使用秘密短语的玩家。

如何安装 RankBot
1) 将 RankBot 添加到你的插件文件夹中,启动服务器或执行 /reload 重载插件
2) 编辑 RankBot 文件夹中的 config.yml 文件。
3) 再次重载或重启以使更改生效。
秘密短语设置示例
SecretPhrase:
Phrase0: rank me
FromGroup0: guest
ToGroup0: nomad
计时游戏时长设置示例
HoursPlayed:
Hours0: 8
FromGroup0: nomad
ToGroup0: citizen
命令
/rankbot {secret_phrase) - 用于通过秘密短语进行晋升。
/rb time - 由玩家使用,显示其自上次下线以来的时间,不包括重新上线后的当前时间。需要 rankbot.time 权限,默认值为 false。
/rb time {playername) - 由管理员使用,用于列出某玩家自上次下线以来的时间;如果未提供名称,则列出所有玩家的时间。需要 rankbot.admin 权限,默认值为 op。
权限
rankbot.time - 允许使用玩家时间命令,该命令向玩家报告其自上次下线以来的游戏时间(不包含当前在线时间的)。
rankbot.admin - 允许使用管理员命令,目前唯一的管理员命令是 “/rb time” 的管理员版本。
要求
RankBot 需要 Vault 以及一个受支持的权限插件。
访问 Vault 网页 查看当前受支持的权限插件列表
注意事项
为了提高效率,RankBot 不会在满足时间要求的瞬间立即进行排名,因为这需要一个检查所有玩家时间与所有 RankBot 时间对比的定时事件。相反,玩家只有在下次登录时才会被更新排名。
RankBot 文件夹中的 playertime.db 文件包含自该文件写入磁盘以来各玩家的游戏时间(以分钟为单位)。此文件仅在服务器停止或插件重载时从内存写入磁盘。
最多支持 30 个秘密短语和 30 个基于计时游戏时长的自动排名。
Automatically promote a player's rank
Using either time played or players using a secret phrase.

How to install RankBot
1) Add RankBot to your plugins folder, start your server or /reload your plugins
2) Edit the config.yml file in the RankBot Folder.
3) Reload or restart again for your changes to take effect.
Example Secret Phrase Setting
SecretPhrase:
Phrase0: rank me
FromGroup0: guest
ToGroup0: nomad
Example Timed Hours Played Settings
HoursPlayed:
Hours0: 8
FromGroup0: nomad
ToGroup0: citizen
Commands
/rankbot {secret_phrase) - Used for secret phrase promotions.
/rb time - Used by a player to show their time until their last log off, doesn't count current time since logging back on. Requires rankbot.time permission, which is defaulted to false.
/rb time {playername) - Used by admins to either list a player's time since last log off, or lists all players if no name is supplied. Requires rankbot.admin permission, which is defaulted to op.
Permissions
rankbot.time - Allows the use of the player time command, which reports back to the player their play time since the last logout (not counting current time).
rankbot.admin - Allows the use of admin commands, the only current admin command is the admin version of "/rb time"
Requirements
RankBot requires Vault and a supported permissions plugin.
Visit the Vault Webpage to see the current list of supported permissions plugins
Notes
To make RankBot more efficient the ranking isn't done the moment the time requirement is met, this would require a timed event that would check all player times vs. all the RankBot Times. Instead, a player isn't ranked until the next logon.
The playertime.db file in the RankBot Folder contains the playtime of players (in minutes) since the file was written to disk, this file is only written from memory to the disk file on server stops or plugin reloads.
There are up to 30 Secret Phrases and 30 Timed Hours Played Automatic Ranks
评论 0
登录后参与评分
还没有评论,来抢沙发吧