
关于
一款与 bPermissions 配合使用的简易权限组管理插件。
bPermsRank 是一款旨在与 bPermissions 协同工作并实现便捷的用户组切换及切换通知的简单插件。该插件使用 bPermissions 内置的 API,但为用户切换玩家所属用户组提供了更友好的操作体验。此外,此插件允许服务器管理员为每个用户组设置权限,从而限制不同玩家只能晋升到指定的用户组。这类似于 bPermissions 的 /promote 命令,但 bPermsRank 会提供更多选项,并在你操作失误时提供更具友好性的反馈提示。
依赖项
主要功能
- 支持通过权限限制谁能设置单个用户的用户组
- 输入无效数据时提供友好的反馈提示
- 支持按世界单独更改用户组
- 支持通过单一命令在所有世界中更改用户组
- 如果目标玩家不在线,会提示你使用 /rankoffline 命令
- 所有命令均可在服务器控制台执行
- 可以查询任何玩家(无论在线或离线)的用户组信息。
- 如果你输入了无效的世界名称,会收到通知
- 如果你没有指定用户组的权限,会收到通知
- (可选)在 config.yml 中自定义消息
- (可选)当玩家等级变更时,向全服广播通知
- (可选)通知被更改等级的玩家其等级变更情况、操作者以及变更后的等级。
- (可选)通知发送命令的玩家等级变更成功
命令
| 命令 | 用法 |
| /rank (player) (group) | 将指定玩家在 config.yml 中配置的所有世界中的用户组设置为你指定的值 |
| /rank (player) (group) (world) | 仅将指定玩家在指定世界中的用户组设置为你指定的值。 |
| /rankoffline (player) (group) | 将指定离线玩家在 config.yml 中配置的所有世界中的用户组设置为你指定的值 |
| /rankoffline (player) (group) (world) | 仅将指定离线玩家在指定世界中的用户组设置为你指定的值。 |
| /rankinfo (player) (group) (world) | 显示指定玩家的用户组信息。如果该玩家在你的权限文件中不存在,则显示默认用户组。如果存在,则列出该玩家所属的所有用户组。 |
| /bpermsrank | 显示 bPermsRank 的命令及其用法 |
| /bpermsrank reload | 重新加载 config.yml,以便你在服务器运行时手动更改设置。 |
权限
本插件的权限设置非常简单。所有需要使用本插件的人都需要拥有 bpermsrank.rank 权限,并且每个你想要允许玩家晋升到的用户组都必须拥有各自独立的权限节点。
权限示例
| 节点 | 用法 |
| bpermsrank.reload | 重新加载 config.yml |
| bpermsrank.rank | 允许使用 /rank 命令 |
| bpermsrank.rankoffline | 允许使用 /rankoffline 命令 |
| bpermsrank.rank.[group] | 晋升到指定用户组 |
| bpermsrank.norank | 如果将此权限赋予某玩家,除非使用 rankoffline 命令,否则其等级无法更改 |
| bpermsrank.rankinfo | 检查玩家的用户组 |
配置
首次运行 bPermsRank 时,插件会生成一个默认的 config.yml,你几乎肯定需要对其进行修改以符合你的需求。config.yml 中包含注释,会告诉你各项配置应如何填写。编辑时请务必保持与默认文件相同的格式。
默认配置
配置示例
安装
- 将 bPermsRank 放入你的 plugins 文件夹
- 启动服务器以生成默认 config.yml
- 关闭服务器
- 编辑位于 /plugins/bPermsRank/ 下的 config.yml
- 为你希望的用户组添加相应的权限
- 启动服务器
即将推出的功能:
- 欢迎提出建议
添加开启/关闭通知的选项 v1.1
添加用于更改离线玩家等级的权限节点 v1.2
通用代码清理 v1.3
添加查询离线/在线玩家用户组的命令 v1.4
添加在配置文件中定义自定义消息的功能 v1.5
需要帮助或只是想聊聊?
请在 EsperNet 上的 #MutinyDev 或 #MutinyCraft 找到我
注意:本项目与 bPermissions 无关

About
Simple ranking plugin for use with bPermissions.
bPermsRank was created as a simple plugin to work alongside bPermissions and allow easy group changing and group change notifications. This plugin uses the bPermissions built in API, but it adds a more user friendly feel to changing the group of a player. This plugin also allows a server admin to set permissions for each group so that different players can rank to different groups. This is similar to the bPermissions /promote command, but bPermsRank will provide you with more options and user friendly feedback if you make a mistake.
Dependencies
Main Features
- Permissions support to limit who can set individual groups
- User friendly feedback when invalid data is entered
- Group changes per world
- Group changes in all worlds via a single command
- If a player is not online it will tell you to use the /rankoffline command
- All of the commands also work from the server console
- Will let you check the group(s) of any player whether they are offline or online.
- Will notify you if the world you entered is invalid
- Will notify you if you do not have permission for a given group
- (Optional) Custom messages defined by you in the config.yml
- (Optional) Notifies the entire server via a broadcast message when the rank of a player is changed
- (Optional) Notifies the player that was ranked of his/her rank change, who ranked them, and what they were ranked to.
- (Optional) Notifies the player that sent the command of the successful rank change
Commands
| Command | Usage |
| /rank (player) (group) | Sets the group of the provided player to what you specify in all the worlds you entered in the config.yml |
| /rank (player) (group) (world) | Sets the group of the provided player to what you specify only in the world you specify. |
| /rankoffline (player) (group) | Sets the group of the provided offline player to what you specify in all the worlds you entered in the config.yml |
| /rankoffline (player) (group) (world) | Sets the group of the provided offline player to what you specify only in the world you specify. |
| /rankinfo (player) (group) (world) | Shows the group(s) of the player that is specified. If the player does not exist in your permissions file it will show default group. If the player does exist it will list all groups that the player belongs to. |
| /bpermsrank | Displays commands and their usage for bPermsRank |
| /bpermsrank reload | Reloads the config.yml so you may manually change the settings while the server is running. |
Permissions
The permissions for this plugin are very simple. Everyone that is going to use this plugin will need the bpermsrank.rank permission and each group that you want to be able to rank to must have it's own permission node.
Permissions Example
| Node | Usage |
| bpermsrank.reload | Reloads the config.yml |
| bpermsrank.rank | Allows the use of the /rank command |
| bpermsrank.rankoffline | Allows the use of the /rankoffline command |
| bpermsrank.rank.[group] | Rank to specified group |
| bpermsrank.norank | If this permission is give to a player their rank cannot be changed unless you use the rankoffline command |
| bpermsrank.rankinfo | Check the group(s) of a player |
Configuration
When you first run bPermsRank the plugin will generate a default config.yml that you will almost positively need to modify to fit your needs. There are comments in the config.yml that will tell you what should go where. Make sure to use the same formatting that is in the default one when you edit it.
Default Config
Example Config
Installation
- Put bPermsRank in your plugin folder
- Start server to generate default config.yml
- Shut down server
- Edit the config.yml that is found in /plugins/bPermsRank/
- Add the proper permissions to you desired groups
- Start server
Upcoming Features:
- Feel free to make a request
Add the option to turn on/off notifications v1.1
Add a permission node to rank offline players v1.2
General code cleanup v1.3
Add command to check offline/online player's group v1.4
Add custom messages defined in config v1.5
Need help or just want to chat?
Find me on EsperNet on #MutinyDev or #MutinyCraft
Note: This project is not affiliated with bPermissions
评论 0
登录后参与评分
还没有评论,来抢沙发吧