BedrockRestrictor
一款轻量且高效的 Velocity 代理插件,旨在限制通过 Geyser/Floodgate 连接的基岩版玩家加入你网络中的特定后端服务器。
为什么使用 BedrockRestrictor?
如果你运营一个跨平台游戏网络,可能有些服务器是严格限定给 Java 版玩家的(例如,需要复杂 Java 专属资源包的 RPG 服务器)。
虽然你可以直接在后端服务器上屏蔽基岩版玩家,但这会造成不必要的负载。
BedrockRestrictor 通过在 Velocity 代理层面拦截连接来解决这个问题。 在后端服务器甚至未被 ping 通或唤醒之前,连接就会被立即阻止。
功能特性
- 代理层拦截: 拦截
ServerPreConnectEvent 以节省后端资源。
- 100% 精准检测: 使用官方的 Floodgate API 来检测基岩版玩家。即使玩家使用全局链接并共享 Java UUID,也能完美工作。
- 自定义黑名单: 轻松定义哪些后端服务器(在
velocity.toml 中命名的)受到限制。
- 自定义消息: 支持传统颜色代码(
&)和 MiniMessage 格式用于拒绝消息。
- 即插即用: 极其轻量,对代理性能零影响。
依赖项
- Velocity (代理)
- Floodgate (Velocity 版本必须安装在代理上)
- GeyserMC (Velocity 版本必须安装在代理上)
配置
该插件会生成一个简单的 config.yml,你可以在其中开启/关闭系统、将服务器添加到黑名单以及自定义你的消息:
# BedrockRestrictor configuration
# Whether the restriction logic is enabled at all.
enabled: true
# Names of backend servers (from velocity.toml) that Bedrock players
# are NOT allowed to join. Case-insensitive.
blocked-servers:
# - RPG
# - classic
# Message sent to Bedrock players when they are denied.
# Supports legacy '&' color codes or MiniMessage formatting.
deny-message: "&cBedrock players when they are denied."
我在自己的服务器上使用了这个插件,并不打算为旧版本的 Velocity 提供支持。当我自己遇到问题时,我会更新该插件。
BedrockRestrictor
A lightweight and efficient Velocity proxy plugin designed to restrict Bedrock players (connecting via Geyser/Floodgate) from joining specific backend servers on your network.
Why use BedrockRestrictor?
If you run a cross-play network, you might have certain servers that are strictly for Java players (for example, an RPG server that requires a complex Java-only resource pack).
While you can block Bedrock players directly on the backend server, it causes unnecessary load.
BedrockRestrictor solves this by intercepting the connection at the Velocity proxy level. The connection is blocked instantly before the backend server is even pinged or awoken.
Features
- Proxy-Level Blocking: Intercepts the
ServerPreConnectEvent to save backend resources.
- 100% Accurate Detection: Uses the official Floodgate API to detect Bedrock players. It works flawlessly even if players use Global Linking and share a Java UUID.
- Customizable Blacklist: Easily define which backend servers (as named in your
velocity.toml) are restricted.
- Custom Messages: Supports legacy color codes (
&) and MiniMessage for the deny message.
- Plug & Play: Extremely lightweight with zero impact on proxy performance.
Dependencies
- Velocity (Proxy)
- Floodgate (Velocity version must be installed on the proxy)
- GeyserMC (Velocity version must be installed on the proxy)
Configuration
The plugin generates a simple config.yml where you can toggle the system, add servers to the blacklist, and customize your message:
# BedrockRestrictor configuration
# Whether the restriction logic is enabled at all.
enabled: true
# Names of backend servers (from velocity.toml) that Bedrock players
# are NOT allowed to join. Case-insensitive.
blocked-servers:
# - RPG
# - classic
# Message sent to Bedrock players when they are denied.
# Supports legacy '&' color codes or MiniMessage formatting.
deny-message: "&cBedrock players when they are denied."
I use this plugin on my own server and don't plan on supporting it for older versions of Velocity. I'll update the plugin whenever I run into issues myself.
评论 0
登录后参与评分
还没有评论,来抢沙发吧