GateKeeper
一个为 Velocity 添加基础白名单系统的插件,支持基岩版玩家和白名单中的 LuckPerms 组。
命令与权限:
如果您想通过用户名(而非 UUID)将基岩版玩家加入白名单,请先在其前面加上您配置的基岩版玩家前缀(默认为 .)。
示例:Tim203 -> .Tim203
/vwhitelist(别名:/velocitywhitelist、/gatekeeper)
-
add <用户名或UUID>:将新玩家加入白名单
-
remove <用户名或UUID>:从白名单中移除指定玩家
-
on:启用白名单
-
off:禁用白名单
-
list:列出当前白名单中的所有玩家
-
addgroup <组名>:将 LuckPerms 用户组加入白名单
-
removegroup <组名> : 从白名单中移除一个 LuckPerms 组
-
listgroups : 列出当前所有已列入白名单的 LuckPerms 组
-
clear : 清除整个白名单
权限基于以下命令授予:
whitelist: 基础命令节点
whitelist.add 用于添加命令
whitelist.clear 用于清除命令
whitelist.list 用于列出命令
whitelist.off 用于关闭命令
whitelist.on 用于开启命令
whitelist.addgroup 用于添加组命令
whitelist.removegroup 用于移除组命令
ẁhitelist.listgroups 用于列出组命令
whitelist.remove 用于移除命令
config.yml
enabled: true # 是否启用白名单。这将通过 `/whitelist on|off` 的使用来改变。
prefix: "<dark_gray>[<light_purple>Whitelist<dark_gray>]<reset> " # 除断开连接原因之外的所有消息的前缀。
messages:
disconnect-reason: | # 当玩家不在白名单中时显示给他们的消息
<red>你未在此服务器的白名单中。</red>
<gray>如果你认为这是一个错误,请联系管理员。</gray>
errors:
player-not-found: "<red>未找到玩家 '{0}'。</red>"
already-whitelisted: "<red>该玩家已在白名单中。</red>"
group-already-whitelisted: "<red>该组已在白名单中。</red>"
not-whitelisted: "<red>该玩家不在白名单中。</red>"
group-not-whitelisted: "<red>该组不在白名单中。</red>"
incorrect-confirmation: "<red>确认码不正确。</red>"
whitelist-already-on: "<red>白名单已启用。</red>"
whitelist-already-off: "<red>白名单已禁用。</red>"
lp-integration-missing: "<red>要在代理上使用组白名单功能,必须在代理上安装 LuckPerms。</red>"
usage:
add: "<red>用法:/vwhitelist add <player></red>"
addgroup: "<red>用法:/vwhitelist add <group></red>"
remove: "<red>用法:/vwhitelist remove <player></red>"
removegroup: "<red>用法:/vwhitelist remove <group></red>"
whitelist: "<red>用法:/vwhitelist <on|off|add|remove|addgroup|removegroup|list|listgroups></red>"
info:
added-to-whitelist: "已将 <red>{0}</red> 添加到白名单。"
removed-from-whitelist: "已从白名单中移除 <red>{0}</red>。"
added-group-to-whitelist: "已将组 <red>{0}</red> 添加到白名单。"
removed-group-from-whitelist: "已从白名单中移除组 <red>{0}</red>。"
whitelist-on: "白名单已<green>启用</green>。"
whitelist-off: "白名单已<red>禁用</red>。"
list: "白名单中的玩家:<yellow>{0}</yellow>"
listgroups: "白名单中的组:<yellow>{0}</yellow>"
list-empty: "<gray>当前白名单为空。</gray>"
whitelist-clear: "请在接下来 15 秒内输入 <red>/whitelist clear {0}</red> 以确认。<gray>注意,此操作无法撤销。"
whitelist-clear-confirmed: "白名单已成功清除。"
GateKeeper
A plugin adding a basic whitelist system to velocity, with Bedrock player and LuckPerms Group whitelisting support.
Commands and Permissions:
If you want to add a bedrock player to the whitelist by their username and not UUID, please prefix it with your configured bedrock player prefix (default: .) first.
Example: Tim203 -> .Tim203
/vwhitelist (aliases: /velocitywhitelist, /gatekeeper)
add <username or uuid> : Adds a new player to the whitelist
remove <username or uuid> : Removes the specified player from the whitelist
on : Enables the whitelist
off : Disables the whitelist
list : Lists all players currently on the whitelist
addgroup <group name> : Adds a LuckPerms group to the whitelist
removegroup <group name> : Removes a LuckPerms group from the whitelist
listgroups : Lists all currently whitelisted LuckPerms groups
clear : Clears the entire whitelist
Permissions are given based on the commands:
whitelist: base command node
whitelist.add for the add-command
whitelist.clear for the clear-command
whitelist.list for the list-command
whitelist.off for the off-command
whitelist.on for the on-command
whitelist.addgroup for the addgroup-command
whitelist.removegroup for the removegroup-command
ẁhitelist.listgroups for the listgroups-command
whitelist.remove for the remove-command
config.yml
enabled: true # if the whitelist should be enabled or not. This will change with the use of `/whitelist on|off`.
prefix: "<dark_gray>[<light_purple>Whitelist<dark_gray>]<reset> " # The prefix for every message except the disconnect reason.
messages:
disconnect-reason: | # the message shown to the player when he is not on the whitelist
<red>You are not whitelisted on this server.</red>
<gray>Please contact an administrator if you believe this is a mistake.</gray>
errors:
player-not-found: "<red>Player '{0}' not found.</red>"
already-whitelisted: "<red>Player is already whitelisted.</red>"
group-already-whitelisted: "<red>Group is already whitelisted.</red>"
not-whitelisted: "<red>Player is not whitelisted.</red>"
group-not-whitelisted: "<red>Group is not whitelisted.</red>"
incorrect-confirmation: "<red>Incorrect confirmation number."
whitelist-already-on: "<red>Whitelist is already enabled.</red>"
whitelist-already-off: "<red>Whitelist is already disabled.</red>"
lp-integration-missing: "<red>LuckPerms is required on the proxy to use the group whitelisting feature."
usage:
add: "<red>Usage: /vwhitelist add <player></red>"
addgroup: "<red>Usage: /vwhitelist add <group></red>"
remove: "<red>Usage: /vwhitelist remove <player></red>"
removegroup: "<red>Usage: /vwhitelist remove <group></red>"
whitelist: "<red>Usage: /vwhitelist <on|off|add|remove|addgroup|removegroup|list|listgroups></red>"
info:
added-to-whitelist: "Added <red>{0}</red> to the whitelist."
removed-from-whitelist: "Removed <red>{0}</red> from the whitelist."
added-group-to-whitelist: "Added group <red>{0}</red> to the whitelist."
removed-group-from-whitelist: "Removed group <red>{0}</red> from the whitelist."
whitelist-on: "Whitelist has been <green>enabled</green>."
whitelist-off: "Whitelist has been <red>disabled</red>."
list: "Whitelisted players: <yellow>{0}</yellow>"
listgroups: "Whitelisted groups: <yellow>{0}</yellow>"
list-empty: "<gray>The whitelist is currently empty."
whitelist-clear: "Please type in <red>/whitelist clear {0}</red> in the next 15 seconds to confirm. <gray>Note that this action cannot be undone."
whitelist-clear-confirmed: "Whitelist cleared successfully."
评论 0
登录后参与评分
还没有评论,来抢沙发吧