? PasswordWhitelist
一个插件,用于在玩家加入服务器时要求输入密码。
快速链接
描述
这个插件为白名单机制带来了新的变化!你不再需要手动将玩家添加到白名单中,而是可以设置一个全服统一的密码,所有连接服务器的用户都必须在加入时输入该密码。本插件利用了 Minecraft 1.21.6 更新引入的新对话系统,以及 Paper 在 1.21.7 中引入的新配置 API,使整个过程非常简洁流畅。
功能
Folia 兼容性
实现 Folia 兼容是一个目标,但在撰写本文时可能尚未达成,
因为截至目前,Folia 1.21.7 尚未发布任何公开构建版本。
Paper 兼容性
此插件应在所有运行 1.21.7(构建版本 #17)及更高版本的 Paper 服务器上正常工作。
权限
⚠️ 建议安装 LuckPerms 来管理权限。
下表列出了所有权限、其默认值及描述:
| 权限 |
默认值 |
描述 |
| passwordwhitelist.exclude |
false |
使用户无需输入密码 |
| passwordwhitelist.command.use |
op |
运行 /passwordwhitelist 命令所需的主要权限 |
| passwordwhitelist.command.help |
true |
运行子命令 /passwordwhitelist help 所需的权限 |
| passwordwhitelist.command.reload |
true |
运行子命令 /passwordwhitelist reload 所需的权限 |
| passwordwhitelist.command.enable |
true |
运行子命令 /passwordwhitelist enable 所需的权限 |
| passwordwhitelist.command.disable |
true |
运行子命令 /passwordwhitelist disable 所需的权限 |
| passwordwhitelist.command.attempts |
true |
运行子命令 /passwordwhitelist attempts 所需的权限 |
| passwordwhitelist.command.password |
true |
运行子命令 /passwordwhitelist password 所需的权限 |
| passwordwhitelist.command.password.set |
op |
运行子命令 /passwordwhitelist password set 所需的权限 |
| passwordwhitelist.command.password.show |
op |
运行子命令 /passwordwhitelist password show 所需的权限 |
如果你对某些子命令的 true 值感到困惑:它们默认设置为 true 的唯一原因是为了简化快速的权限配置。所有玩家都需要拥有 passwordwhitelist.command.use 权限才能使用任何命令。这些子权限仅允许服务器管理员进行更精细的控制。
关于 exclude 权限的注意事项
由于在玩家连接服务器的配置阶段会检查 exclude 权限,因此无法通过 Paper 的 API 检查玩家的权限。因此,此功能要求
服务器上已安装 LuckPerms。
命令
- 别名:
passwordwhitelist、/passw 和 /pw。
| 命令 |
描述 |
/passwordwhitelist help |
显示帮助信息 |
/passwordwhitelist reload [<file>] |
重新加载插件数据文件 |
/passwordwhitelist enable |
启用密码白名单 |
/passwordwhitelist disable |
禁用密码白名单 |
/passwordwhitelist password set <password> |
设置新密码 |
/passwordwhitelist password show |
显示当前密码 |
/passwordwhitelist attempt reset <player> |
重置玩家的失败密码尝试次数 |
? PasswordWhitelist
A plugin to make users enter a password on server join.
Quick links
Description
This plugin adds a new twist to whitelisting! Instead of manually adding players to your whitelist, you can set a server-wide password, which all connecting users will have to enter on server join. The plugin utilizes the new dialog system introduced with the 1.21.6 Minecraft update and a new configuration API introduced by Paper in 1.21.7 to make the process very clean and smooth.
Features
- Extensive customizability
- MiniMessage Format
- New dialog system introduced in 1.21.6
- Async configuration-phase password input
Folia compatibility
Folia compatibility is a goal, which at the time of writing might not be reached yet,
as no public builds of Folia 1.21.7 have been released so far.
Paper compatibility
This plugin should work on all Paper servers on version 1.21.7 (build #17) and higher.
Permissions
⚠️ It is suggested that you install LuckPerms for managing permissions.
Below is a table of all permissions, their default values, and their descriptions:
| Permission |
Default |
Description |
| passwordwhitelist.exclude |
false |
Excludes a user from having to enter the password |
| passwordwhitelist.command.use |
op |
Main permission required to run the /passwordwhitelist command |
| passwordwhitelist.command.help |
true |
Permission required to run the '/passwordwhitelist help' subcommand |
| passwordwhitelist.command.reload |
true |
Permission required to run the '/passwordwhitelist reload' subcommand |
| passwordwhitelist.command.enable |
true |
Permission required to run the '/passwordwhitelist enable' subcommand |
| passwordwhitelist.command.disable |
true |
Permission required to run the '/passwordwhitelist disable' subcommand |
| passwordwhitelist.command.attempts |
true |
Permission required to run the '/passwordwhitelist attempts' subcommand |
| passwordwhitelist.command.password |
true |
Permission required to run the '/passwordwhitelist password' subcommand |
| passwordwhitelist.command.password.set |
op |
Permission required to run the '/passwordwhitelist password set' subcommand |
| passwordwhitelist.command.password.show |
op |
Permission required to run the '/passwordwhitelist password show' subcommand |
If you are confused about the true values for some of the subcommands: The only reason they are set to true by
default is to make quick permission setups easier. All players require to passwordwhitelist.command.use permission
in order to use any command. The sub-permissions merely allow for fine-grained control for server owners.
Note regarding the exclude permission
Because of the exclude permission being checked during the configuration phase of a player's server connection, it is
not possible
to check the player's permission through Paper's API. Therefore, this feature requires
that LuckPerms
is installed on the server.
Command
- Aliases:
passwordwhitelist, /passw, and /pw.
| Command |
Description |
/passwordwhitelist help |
Show a help message |
/passwordwhitelist reload [<file>] |
Reload a plugin data file |
/passwordwhitelist enable |
Enable the password whitelist |
/passwordwhitelist disable |
Disable the password whitelist |
/passwordwhitelist password set <password> |
Set a new password |
/passwordwhitelist password show |
Show the current password |
/passwordwhitelist attempt reset <player> |
Reset a player's failed password attempt count |
评论 0
登录后参与评分
还没有评论,来抢沙发吧