ReWhitelist
一款简单但功能强大的插件,允许你限制对特定服务器或整个网络的访问。你可以添加多个不同的白名单列表,并根据需要随时启用或禁用它们。
例如,你可以创建一个包含所有管理员的列表,让他们可以随时访问服务器;另一个列表则包含测试人员,他们仅在测试期间拥有访问权限。
你不再需要从白名单中添加或删除用户,只需启用或禁用包含测试人员的白名单即可。
下载
你可以从 Modrinth 或 Hangar 下载该插件的最新版本。
问题与建议
如果你有任何问题或建议,请在 issues 部分进行反馈。
描述
此插件允许你创建和管理多个白名单。
默认情况下,所有白名单均处于禁用状态。
当默认白名单启用时,除非有其他启用的白名单允许进入,否则所有玩家都将被禁止进入。
当白名单中的服务器列表为空时,该白名单将保护所有服务器;否则,它仅保护指定的服务器。
插件内置了与 Floodgate 的集成,允许玩家使用他们的 Floodgate 账号加入服务器。
命令与权限
主要命令是 /whitelist,用于管理白名单。
| 参数 |
描述 |
权限 |
| /whitelist reload |
重新加载白名单配置。 |
rewhitelist.command.whitelist.reload |
/whitelist create <group> |
创建新的白名单组。 |
rewhitelist.command.whitelist.create |
/whitelist [group] add <uuid/nick/regex/group/permission/...> <value> |
将玩家条目添加到白名单中。 |
rewhitelist.command.whitelist.add |
/whitelist [group] remove <value> |
从白名单中移除玩家。 |
rewhitelist.command.whitelist.remove |
/whitelist [group] list |
显示所有已加入白名单的玩家列表。 |
rewhitelist.command.whitelist.list |
/whitelist [group] on |
启用白名单。 |
rewhitelist.command.whitelist.on |
/whitelist [group] off |
禁用白名单。 |
rewhitelist.command.whitelist.off |
/whitelist [group] settings <servers/...> |
白名单的附加设置。 |
rewhitelist.command.whitelist.settings |
| /whitelist [group] 设置服务器 <添加/移除/清除/列表/...> | 管理由白名单控制的服务器。 | rewhitelist.command.whitelist.settings.servers
rewhitelist.command.whitelist.settings.servers.edit(用于添加/移除/清除) |
[group] - 为可选参数,可省略。默认为:default
<...> - 包含多个选项。若省略,将显示可用选项。
示例
/whitelist on # 启用白名单阻止功能
/whitelist create Stuff # 创建名为 "Stuff" 的新组
/whitelist Stuff on # 启用白名单以允许指定玩家通过
/whitelist Stuff add nick Test123 # 添加新条目,允许昵称为 "Test123" 的玩家进入
/whitelist create Testers # 创建名为 "Testers" 的新组
/whitelist Testers add permission Tester # 添加新条目,允许拥有 "Tester" 权限的玩家进入
# 由于 "Testers" 组未启用,拥有 "Tester" 权限的玩家仍无法进入
/whitelist Testers on # 启用 "Testers" 组
配置文件
示例配置文件:
config.toml
ReWhitelist
A simple, but still very powerful plugin that allows you to restrict access to the particular server or an entire network. Allows you to add many different lists, with ability to turn them on and off as needed.
For example, you can have a list with all administrators who can access the server at all times, and a list with testers who have access only for testing.
You no longer need to add or remove users from one whitelist, you just need to enable or disable whitelist with testers in it.
Download
You can download the latest version of the plugin from the Modrinth or Hangar.
Issues & suggestions
If you have any issues or suggestions, please report them in the issues section.
Description
This plugin allows you to create and manage multiple whitelists.
By default all whitelists are disabled.
When the default whitelist is enabled, all players are forbidden to enter, unless any other enabled whitelist allows entrance.
When whitelist's servers are empty, whitelist protects all servers, otherwise whitelist protects only specified servers.
Plugin has a built-in integration with Floodgate to allow players to join the server with their Floodgate accounts.
Commands & permissions
Main command is /whitelist which allows you to manage whitelists.
| Argument |
Description |
Permission |
| /whitelist reload |
Reload a whitelist configuration. |
rewhitelist.command.whitelist.reload |
/whitelist create <group> |
Create new whitelist group. |
rewhitelist.command.whitelist.create |
/whitelist [group] add <uuid/nick/regex/group/permission/...> <value> |
Add player entry to the whitelist. |
rewhitelist.command.whitelist.add |
/whitelist [group] remove <value> |
Remove player from the whitelist. |
rewhitelist.command.whitelist.remove |
/whitelist [group] list |
Show list of all whitelisted players. |
rewhitelist.command.whitelist.list |
/whitelist [group] on |
Enable whitelist. |
rewhitelist.command.whitelist.on |
/whitelist [group] off |
Disable whitelist. |
rewhitelist.command.whitelist.off |
/whitelist [group] settings <servers/...> |
Additional settings of whitelist. |
rewhitelist.command.whitelist.settings |
/whitelist [group] settings servers <add/remove/clear/list/...> |
Manage servers controlled by whitelist. |
rewhitelist.command.whitelist.settings.servers rewhitelist.command.whitelist.settings.servers.edit (for add/remove/clear) |
[group] - is an optional argument, that can be omited. Defaults to: default
<...> - has multiple options. If omited, available options will be displayed.
Example
/whitelist on # enables whitelist blocking
/whitelist create Stuff # creates a new group "Stuff"
/whitelist Stuff on # enables a whitelist to allow entries to passthorugh players
/whitelist Stuff add nick Test123 # adds new entry allowing player with nick "Test123" to enter
/whitelist create Testers # creates a new group "Testers"
/whitelist Testers add permission Tester # adds new entry allowing player with permission "Tester" to enter
# due to fact that "Testers" group wasn't enabled, players with permission "Tester" sill won't be able to enter
/whitelist Testers on # enables "Testers" group
Configuration file
Example config file:
config.toml
评论 0
登录后参与评分
还没有评论,来抢沙发吧