这是一个我最初为自己个人使用而编写的插件。它覆盖了内置的白名单系统。
该插件旨在与离线服务器或实现了 Geyser 和 Floodgate 的服务器配合使用。
内置白名单命令的问题在于,它会尝试将 Mojang UUID 添加到白名单中,这对于离线模式服务器或在 Floodgated Geyser 服务器上的基岩版玩家来说无法正常工作。通常在这些情况下,你必须手动更改 "whitelist.json" 文件中的 UUID,或者禁用白名单,允许玩家加入,然后将其添加到白名单并重新开启。
此插件通过向白名单添加一个没有 UUID 的用户名来工作,一旦玩家加入,它会将用户名替换为该玩家的 UUID。这比在等待玩家加入时关闭白名单更可取。
如果在安装此插件时你的白名单当前已启用,它将导入你当前白名单中的玩家并禁用它。
命令
/whitelist:显示所有可用命令
/whitelist add:将玩家添加到白名单。用空格分隔用户名。
/whitelist addUUID:将 UUID 添加到白名单。目前一次只能添加一个。
/whitelist remove:从白名单中移除玩家。用空格分隔用户名。
/whitelist removeUUID:从白名单中移除 UUID。目前一次只能移除一个。
/whitelist list:列出所有已被列入白名单的玩家。如果你添加了 UUID 且玩家尚未在你的服务器上玩过,它将仅显示“UUID:”后跟你输入的 UUID。
This is a plugin I originally wrote for my own personal use. It overrides the built-in whitelist system.
It's meant to be used with offline servers or with servers implementing Geyser and Floodgate.
The problem with the built-in whitelist command is that it tries to add the Mojang UUID to the whitelist, which won't work for offline mode servers or for bedrock players on a Floodgated Geyser server. Typically in these instances you would have to manually change the UUID in the "whitelist.json" file or disable the whitelist, allow the player to join, and then add them to the whitelist and turn it back on.
This plugin works by adding a username to the whitelist with no UUID, and then once the player joins, it replaces the username with the players UUID. This is preferable to turning off your whitelist while waiting for the player to join.
If you have whitelist currently enabled when installing this plugin, it will import the players from your current whitelist and disable it.
Commands
/whitelist: displays all available commands
/whitelist add: adds players to the whitelist. Separate the usernames with a space.
/whitelist addUUID: adds a UUID to the whitelist. You can only add one at a time as of now.
/whitelist remove: removes players from the whitelist. Separate the usernames with a space.
/whitelist removeUUID: removes a UUID from the whitelist. You can only remove one at a time as of now
/whitelist list: Lists all of the players who have been whitelisted. If you added a UUID and the player has not yet played on your server, it will simply show "UUID:" followed by the UUID that you entered
评论 0
登录后参与评分
还没有评论,来抢沙发吧