ViaRestrictor for Velocity
这是 ViaRestrictor,是原始 akanoka/viarestrictor 项目的分支,专门针对 Velocity 代理进行了适配。它通过与 ViaVersion 集成,帮助你在 Minecraft 代理设置中管理客户端版本,允许你限制来自不兼容或不希望出现的客户端的访问,并在需要时提供信息性消息。
功能说明
通过 ViaVersion(必须安装)检测玩家的客户端版本。
支持根据你的偏好对受限版本进行黑名单过滤或对允许版本进行白名单过滤。
可自定义踢出消息,支持颜色代码 (&) 和换行符 (\n)。
可选择在显示消息后自动踢出玩家。
如果启用,会将阻止的连接记录到控制台中以供参考。
为什么选择这个分支?
原始插件是为 Spigot 服务器(或其分支如 Paper)设计的。此版本已完全移植以适用于 Velocity 代理,保留了所有核心功能,但针对代理环境进行了优化。
设置
将插件放入你的 Velocity plugins 目录。
需要 Java 17 或更高版本以及 ViaVersion。
配置文件会在首次启动时生成于 plugins/ViaRestrictor/config.yml。
allowed_versions: 指定协议编号(例如,Minecraft 1.20.1 对应 759)。
kick_message: 使用占位符(如 %mcversion% 或 %version%)进行自定义。
mode: 使用 whitelist 仅允许指定的版本。
kick: 设置为 true 以启用自动踢出。
log_kicks: 设置为 true 以在控制台中记录被阻止的玩家。
踢出示例: 
你可以使用 Velocity 的命令(如 /velocity reload)重新加载配置,或者重启
ViaRestrictor for Velocity
This is ViaRestrictor, a fork of the original akanoka/viarestrictor project, adapted specifically for Velocity proxies. It helps manage client versions on your Minecraft proxy setup by integrating with ViaVersion, allowing you to restrict access from incompatible or undesired clients and provide informative messages if needed.
What It Does
Detects the player's client version through ViaVersion (which must be installed).
Supports blacklisting restricted versions or whitelisting allowed ones, based on your preference.
Customizable kick messages with color codes (&) and line breaks (\n).
Option to automatically kick players after displaying the message.
Logs blocked connections to the console for reference, if enabled.
Why This Fork?
The original plugin was designed for Spigot servers (or forks like Paper). This version has been fully ported to work with Velocity proxies, keeping all the core features intact but optimized for the proxy environment.
Setup
Place the plugin in your Velocity plugins directory.
Requires Java 17 or higher and ViaVersion.
The configuration file is generated at plugins/ViaRestrictor/config.yml upon first launch.
allowed_versions: Specify protocol numbers (e.g., 759 for Minecraft 1.20.1).
kick_message: Customize with placeholders like %mcversion% or %version%.
mode: Use whitelist to allow only specified versions.
kick: Set to true to enable automatic kicks.
log_kicks: Set to true to log blocked players in the console.
Example for kick: 
You can reload the configuration using Velocity's commands (like /velocity reload) or restart
评论 0
登录后参与评分
还没有评论,来抢沙发吧