monban 是一个白名单、访问控制和权限插件,支持明确的 ONLINE(在线)、OFFLINE(离线)和 FLOODGATE 玩家身份标识。它支持独立的 Bukkit/Spigot 以及 Paper/Folia 服务器,并可在带有 Geyser/Floodgate 支持的 Velocity 网络中充当中央访问权威,提供玩家分组、受限后端访问和同步的后端权限功能。
其重点不仅仅是“此 UUID 是否被允许?”,而是该身份为何可信。采用“故障关闭”(fail-closed)行为是刻意为之:无效的配置、未解析的网络拓扑、未验证的后端身份、必需提供者失败以及同步失败都不会导致静默的放行决定。
支持的平台
| 平台 | 部署方式 | 全局白名单 | 玩家权限 | 受限后端访问 | 混合认证 | Floodgate 身份 |
|---|---|---|---|---|---|---|
| Bukkit / Spigot | 独立或后端 | ✓ | ✓ | — | — | — |
| Paper / Folia | 独立或后端 | ✓ | ✓ | — | — | — |
| Velocity | 网络权威 | ✓ | ✓ | ✓ | ✓ | ✓ |
Paper/Folia 构建包是一个 Paper 插件,与 Bukkit/Spigot 兼容构建包分开。混合认证流程的选择权属于 Velocity;Paper/Folia 插件不实现 deployment.mode: VELOCITY。
支持 Spigot、Paper、Purpur 及其他兼容 Bukkit/Paper 的分支版本。Spigot 和 Paper 已单独测试;其他分支版本具备 API 兼容性,但不提供单独的保证。不支持 Mohist、Arclight 和 Cardboard 等混合分支版本。
功能
- 使用明确的
ONLINE、OFFLINE和FLOODGATE身份标识,而非通过 UUID 的存在来推断信任。 - 在 Velocity 上可选集成 Geyser/Floodgate,以支持经过认证的基岩版玩家。
- 玩家分组独立于 Velocity 的
SERVER_GROUP定义。 - 为代理层和后端的插件提供基于分组和直接玩家的权限。
- 支持
NETWORK、SERVER_GROUP和SERVER作用域用于访问规则和权限。 - 为单个后端服务器和服务器组提供分组访问授权。
- 在所有支持的平台间统一使用
/monban whitelist管理模型。 - 运行时支持
/monban whitelist enable和/monban whitelist disable。 - 自动根据玩家名称查找 ONLINE 配置文件,同时仍保留显式 UUID 输入选项。
- 交互式白名单和受限访问列表,支持分页和保留过滤条件的导航。
- 在 Velocity 上实施全网白名单强制策略。
- 每个后端支持
OPEN(开放)和GRANT_REQUIRED(需授权)访问策略。 - 在 Velocity 上支持
/monban lookup <player>以获取身份和白名单状态详情。 - 在 Velocity 上支持
/monban status以获取运行时访问摘要。 - 有效访问检查,包含分组和直接授权的来源信息。
- 可选的 Velocity 混合
ONLINE/OFFLINE认证流程选择。 - 将 Velocity 状态集中同步到 Bukkit 和 Paper 后端。
- 无需 LuckPerms 即可实现本地后端权限。
- 权限感知的命令帮助,以及在权限更新后刷新后端命令树。
- 跨白名单、受限访问、分组和直接权限的 Floodgate 管理。
- 在 Paper 平台边界处原生支持 Folia 兼容调度。
- 严格且带版本控制的 YAML 配置及持久化访问状态。
- 启动和访问验证采用故障关闭机制,以防止安全敏感初始化失败。
- 持久化的同步元数据,具备纪元/水印重放保护。
- 匿名 bStats 指标统计,默认启用且易于退出。
- 可选的全服务器启动后更新通知,并提供最新版本的链接。
要求
monban 插件字节码目标为 Java 21。
| 平台 | 最低要求 | 推荐 3.4.0 系列 | 备注 |
|---|---|---|---|
| Spigot | 1.21 | 1.21.11 | Java 21 |
| Paper | 1.21 | 1.21.11 | Java 21;Paper 26.x 需要 Java 25 |
| Folia | 1.21 | 1.21.11 | Java 21;Folia 调度必须针对你的版本进行验证 |
| Velocity | 3.5.1 | 3.5.1 | Java 21;旧版 Velocity 会在启动时故障关闭 |
| Java | 21 | 1.21.x 使用 21;Paper 26.x 使用 25 | — |
Paper 26.x 具备 API 兼容性并可编译,但在运行时清单检查通过之前,不会被声明为默认的生产线版本。Velocity 4.x 在 3.4.0 中未获官方支持;可以尝试使用,但不提供任何保证。
不支持 Fabric、NeoForge、BungeeCord、低于 21 的 Java 版本以及低于 1.21 的 Minecraft/API 版本。
安装
- 从 Modrinth 或 GitHub Releases 下载适合你平台的构建包。
- 将 JAR 文件放入平台的
plugins/目录中。 - 对于独立的 Bukkit/Spigot 或 Paper/Folia,请将原生 Minecraft 白名单设置为
white-list=false。 - 首次启动服务器,配置
plugins/monban/config.yml,然后重启。 - 使用
/monban whitelist ...管理访问权限。Velocity 还提供/monban access ...、/monban lookup ...、/monban group ...、/monban user ...和/monban status命令。
请勿在同一服务器上安装多个 monban 平台构建包。
独立服务器
对于独立服务器,monban 作为白名单权威。请在 server.properties 中禁用原生白名单:
white-list=false
白名单可以在运行时更改:
/monban whitelist enable
/monban whitelist disable
如需自动解析 ONLINE 配置文件,请使用:
/monban whitelist add online <name>
通过 /monban whitelist add online <name> <uuid> 保留显式 UUID 输入选项,并可绕过配置文件查找。
Floodgate 身份解析属于 Velocity 构建版本。独立版和后端构建版本继续使用 Java ONLINE 和 OFFLINE 身份。
Velocity 网络
Velocity 是网络白名单、后端访问、组和权限的中心权威机构。在 Velocity 上安装 monban-velocity,并在每个需要应用同步权限的后端上安装相应的 Bukkit/Spigot 或 Paper/Folia 构建版本。
在 Velocity 上启用后端权限:
backend-permissions:
enabled: true
Velocity 会自动创建 plugins/monban/sync.yml。将生成的文件及其相同内容复制到每个已启用的后端服务器。请勿在服务器之间复制 state-revision、state-epoch 或 sync-watermark.yml。
在后端的 config.yml 中启用后端权限,并将 server-name 设置为 Velocity 中注册的准确服务器名称:
backend-permissions:
enabled: true
server-name: lobby
后端会自动创建 server-groups.yml。仅在使用 SERVER_GROUP 权限或访问授权时,才需要匹配服务器组映射。
在集中式模式下,白名单、组和权限管理在 Velocity 上进行。后端服务器不管理单独的本地 monban 状态,从而防止不同服务器上出现不同的白名单或权限。
使用 Chunky 的后端权限设置示例:
/monban group create moderator
/monban group moderator access grant server lobby
/monban group moderator permission add server lobby chunky.command.start
/monban group moderator permission add server lobby chunky.command.cancel
/monban user hanamuramiyu offline group add moderator
重新连接玩家并检查 /chunky 标签补全,然后根据情况运行 /chunky start 或 /chunky cancel。
同步协议 v4
3.4.0 使用同步协议版本 4。3.4.0 和 3.3.0 会互相拒绝对方的快照,因此请同时更新 Velocity 代理和所有同步后端。
Velocity 会创建 plugins/monban/state-epoch;每个后端在第一个接受的快照后创建 plugins/monban/sync-watermark.yml。水印会在应用快照之前持久化,重启后会被重放或拒绝过时的快照。
混合 3.3.0/3.4.0 的网络会失败关闭:直到双方都使用协议 v4,后端才会暴露 monban 权限。将整个网络回滚到 3.3.0 仍然是可能的;旧构建版本会忽略 state-epoch 和 sync-watermark.yml。
Geyser 和 Floodgate
Velocity 支持 Geyser 和 Floodgate。Geyser 接受基岩版连接,Floodgate 提供经过认证的基岩版身份,monban 将该连接评估为 FLOODGATE 身份。Bukkit 和 Paper 构建版本继续对 Java 玩家使用 ONLINE 和 OFFLINE 身份;它们自身不会解析 Floodgate 身份。
在代理上安装 Geyser、Floodgate 和 monban。在生成的 Velocity 配置中启用 Floodgate:
identity:
mode: AUTO
floodgate:
enabled: true
require-provider: true
Floodgate 集成默认处于禁用状态。当基岩版访问控制是生产网络的一部分时,建议设置 require-provider: true:monban 将在启动时明显失败,而不是在没有预期的 Floodgate 提供者的情况下运行。
在 3.4.0 中,没有 enabled 字段的局部 identity.floodgate 部分表示禁用。请显式设置 enabled: true。当集成禁用时,require-provider 无效。发现提供者失败后,将拒绝连接,而不是静默回退到 Java 身份。
在向 Bedrock 玩家添加用户时,请使用报告给 monban 的标准化 Floodgate Java 用户名,包括其配置的自定义前缀。对于未链接的基岩版账户,这通常是服务器可见的名称:
/monban whitelist add floodgate .BedrockName
标准化名称是持久的访问密钥。可以随 /monban whitelist add floodgate <name> <xuid> 提供可选的 XUID,但它仅作为元数据,不会更改身份匹配。因此,Floodgate 名称更改会更改访问密钥。
同步后端权限附加到后端可以解析的 Java ONLINE 或 OFFLINE 身份。Floodgate 组和直接权限由 Velocity 评估以进行准入和代理权限;它们不会在后端上重新匹配为 FLOODGATE 身份。
指标与隐私
bStats 指标默认启用。可以在 plugins/monban/config.yml 中禁用它们:
metrics:
enabled: false
也可以在 plugins/bStats/config.yml 中全局禁用它们。
bStats 接收匿名使用数据,例如插件版本、服务器软件和版本、Java/操作系统、玩家数量、在线模式、核心数量、Velocity 上管理的后端数量以及随机安装 UUID。它不接收玩家名称、UUID、IP、聊天、命令、权限、配置文件或服务器名称。
更新通知
服务器完全启动后,monban 会检查 Modrinth 是否有新版本发布。如果 Modrinth 不可用,它将回退到 GitHub Releases。如果两者都不可用,则静默跳过检查。该检查不会阻塞启动,也不会发送服务器或玩家数据。
当找到较新版本时,日志中将包含最新版本以及指向 modrinth.com/plugin/monban 的链接。
升级至 3.4
- 备份 Velocity 和所有同步后端上的
plugins/monban/。 - 同时更新 Velocity 和所有同步后端;协议 v4 不兼容混合版本。
- 如果使用 Floodgate,请显式设置
identity.floodgate.enabled。 - 审查新的
metrics部分。 - 在降级到 3.3.0 之前,删除
metrics部分;3.3.0 会拒绝未知的根字段并导致失败关闭。 - 低于 3.5.1 的 Velocity 将在启动时被拒绝,并显示清晰的消息。
安全说明
backend-permissions.allow-unverified-identity仅允许启动;它不会使身份验证状态变为已验证。- 保持后端端口对除代理之外的所有连接关闭。
- 保持
sync.yml私有,并确保所有参与者之间的内容完全一致。 - 同时更新 Velocity 和所有同步的后端。
- 保持 Floodgate 的密钥材料私有。
- 将因安全策略(fail-closed)导致的启动失败视为需要修复的配置错误,而不是将其作为禁用防护机制的理由。
文档
完整的设置、配置、命令、存储、权限、Geyser/Floodgate、后端同步以及混合认证相关文档可在 monban.miyu.pw 查阅。
构建
./gradlew clean build
许可证
monban 遵循 Mozilla Public License 2.0 许可协议。
monban
Minecraft access control for standalone servers and Velocity networks.
monban is a whitelist, access-control, and permissions plugin with explicit ONLINE, OFFLINE, and FLOODGATE player identities. It supports standalone Bukkit/Spigot and Paper/Folia servers, and can act as the central access authority for a Velocity network with Geyser/Floodgate support, player groups, scoped backend access, and synchronized backend permissions.
The focus is not just “is this UUID allowed?” but why the identity can be trusted. Fail-closed behavior is deliberate: invalid configuration, unresolved topology, unverified backend identity, required-provider failures, and synchronization failures do not become silent allow decisions.
Supported platforms
| Platform | Deployment | Global whitelist | Player permissions | Scoped backend access | Hybrid auth | Floodgate identity |
|---|---|---|---|---|---|---|
| Bukkit / Spigot | Standalone or backend | ✓ | ✓ | — | — | — |
| Paper / Folia | Standalone or backend | ✓ | ✓ | — | — | — |
| Velocity | Network authority | ✓ | ✓ | ✓ | ✓ | ✓ |
The Paper/Folia artifact is a Paper plugin and is separate from the Bukkit/Spigot compatibility artifact. Hybrid authentication-flow selection belongs to Velocity; the Paper/Folia plugin does not implement deployment.mode: VELOCITY.
Spigot, Paper, Purpur, and other drop-in Bukkit/Paper-compatible forks are supported. Spigot and Paper are tested individually; forks are API-compatible without individual guarantees. Hybrid forks such as Mohist, Arclight, and Cardboard are not supported.
Features
- Explicit
ONLINE,OFFLINE, andFLOODGATEidentities instead of inferring trust from the presence of a UUID. - Optional Geyser/Floodgate integration on Velocity for authenticated Bedrock players.
- Player groups separate from Velocity
SERVER_GROUPdefinitions. - Group and direct player permissions for proxy and backend plugins.
NETWORK,SERVER_GROUP, andSERVERscopes for access rules and permissions.- Group access grants for individual backend servers and server groups.
- One
/monban whitelistadministration model across supported platforms. - Runtime
/monban whitelist enableand/monban whitelist disable. - Automatic ONLINE profile lookup by player name, with explicit UUID input still available.
- Interactive whitelist and scoped-access lists with pagination and filter-preserving navigation.
- Network-wide whitelist enforcement on Velocity.
- Per-backend
OPENandGRANT_REQUIREDaccess policies. /monban lookup <player>on Velocity for identity and whitelist status details./monban statuson Velocity for a runtime access summary.- Effective access inspection with group and direct-grant origins.
- Optional Velocity hybrid
ONLINE/OFFLINEauthentication-flow selection. - Centralized Velocity state synchronization to Bukkit and Paper backends.
- Local backend permissions without requiring LuckPerms.
- Permission-aware command help and backend command-tree refresh after permission updates.
- Floodgate administration across whitelist, scoped access, groups, and direct permissions.
- Native Folia-compatible scheduling at the Paper platform boundary.
- Strict, versioned YAML configuration and persistent access state.
- Fail-closed startup and access verification for security-sensitive initialization failures.
- Durable synchronization metadata with epoch/watermark replay protection.
- Anonymous bStats metrics, enabled by default and easy to opt out.
- Optional update notification after full server startup, with a link to the latest release.
Requirements
monban plugin bytecode targets Java 21.
| Platform | Minimum | Recommended 3.4.0 line | Notes |
|---|---|---|---|
| Spigot | 1.21 | 1.21.11 | Java 21 |
| Paper | 1.21 | 1.21.11 | Java 21; Paper 26.x requires Java 25 |
| Folia | 1.21 | 1.21.11 | Java 21; Folia scheduling must be verified for your version |
| Velocity | 3.5.1 | 3.5.1 | Java 21; older Velocity versions fail closed at startup |
| Java | 21 | 21 for 1.21.x; 25 for Paper 26.x | — |
Paper 26.x is API-compatible and compiles, but it is not declared the default production line until the runtime checklist passes. Velocity 4.x is not officially supported in 3.4.0; it may be tried, but no guarantees.
Fabric, NeoForge, BungeeCord, Java below 21, and Minecraft/API below 1.21 are not supported.
Install
- Download the build for your platform from Modrinth or GitHub Releases.
- Put the JAR in the platform's
plugins/directory. - For standalone Bukkit/Spigot or Paper/Folia, set the native Minecraft whitelist to
white-list=false. - Start the server once, configure
plugins/monban/config.yml, then restart. - Manage access with
/monban whitelist .... Velocity additionally provides/monban access ...,/monban lookup ...,/monban group ...,/monban user ..., and/monban status.
Do not install multiple monban platform builds on the same server.
Standalone servers
For standalone servers, monban is the whitelist authority. Disable the native whitelist in server.properties:
white-list=false
The whitelist can be changed at runtime:
/monban whitelist enable
/monban whitelist disable
For automatic ONLINE profile resolution, use:
/monban whitelist add online <name>
Explicit UUID input remains available with /monban whitelist add online <name> <uuid> and bypasses profile lookup.
Floodgate identity resolution belongs to the Velocity build. Standalone and backend builds continue to use Java ONLINE and OFFLINE identities.
Velocity networks
Velocity is the central authority for the network whitelist, backend access, groups, and permissions. Install monban-velocity on Velocity and the matching Bukkit/Spigot or Paper/Folia build on every backend that should apply synchronized permissions.
Enable backend permissions on Velocity:
backend-permissions:
enabled: true
Velocity creates plugins/monban/sync.yml automatically. Copy the generated file with the same contents to every enabled backend. Do not copy state-revision, state-epoch, or sync-watermark.yml between servers.
Enable backend permissions in the backend's config.yml and set server-name to the exact registered server name from Velocity:
backend-permissions:
enabled: true
server-name: lobby
The backend creates server-groups.yml automatically. Matching server-group mappings are only needed when SERVER_GROUP permissions or access grants are used.
In centralized mode, whitelist, group, and permission administration is performed on Velocity. Backend servers do not manage a separate local monban state, preventing different whitelists or permissions on different servers.
Example backend permission setup using Chunky:
/monban group create moderator
/monban group moderator access grant server lobby
/monban group moderator permission add server lobby chunky.command.start
/monban group moderator permission add server lobby chunky.command.cancel
/monban user hanamuramiyu offline group add moderator
Reconnect the player and check /chunky tab completion, then run /chunky start or /chunky cancel as appropriate.
Synchronization protocol v4
3.4.0 uses synchronization protocol version 4. 3.4.0 and 3.3.0 reject each other's snapshots, so update the Velocity proxy and every synchronized backend together.
Velocity creates plugins/monban/state-epoch; each backend creates plugins/monban/sync-watermark.yml after the first accepted snapshot. The watermark is persisted before a snapshot is applied, and replayed or stale snapshots are rejected after restarts.
A mixed 3.3.0/3.4.0 network fails closed: the backend exposes no monban permissions until both sides speak protocol v4. Rolling the whole network back to 3.3.0 remains possible; older builds ignore state-epoch and sync-watermark.yml.
Geyser and Floodgate
Geyser and Floodgate support is available on Velocity. Geyser accepts Bedrock connections, Floodgate supplies the authenticated Bedrock identity, and monban evaluates that connection as a FLOODGATE identity. The Bukkit and Paper builds continue to use ONLINE and OFFLINE identities for Java players; they do not resolve Floodgate identities themselves.
Install Geyser, Floodgate, and monban on the proxy. Enable Floodgate in the generated Velocity configuration:
identity:
mode: AUTO
floodgate:
enabled: true
require-provider: true
Floodgate integration is disabled by default. require-provider: true is recommended when Bedrock access control is part of the production network: monban will fail visibly at startup instead of running without the expected Floodgate provider.
In 3.4.0 a partial identity.floodgate section without enabled means disabled. Set enabled: true explicitly. require-provider is inert while the integration is disabled. A provider failure after discovery denies the connection instead of silently falling back to a Java identity.
Use the normalized Floodgate Java username reported to monban, including its configured prefix, when adding a Bedrock player. For an unlinked Bedrock account this is normally the server-visible name:
/monban whitelist add floodgate .BedrockName
The normalized name is the durable access key. An optional XUID may be supplied with /monban whitelist add floodgate <name> <xuid>, but it remains metadata and does not change identity matching. A Floodgate name change therefore changes the access key.
Synchronized backend permissions are attached to the Java ONLINE or OFFLINE identity that the backend can resolve. Floodgate groups and direct permissions are evaluated by Velocity for admission and proxy permissions; they are not re-matched as FLOODGATE identities on a backend.
Metrics and privacy
bStats metrics are enabled by default. They can be disabled in plugins/monban/config.yml:
metrics:
enabled: false
They can also be disabled globally in plugins/bStats/config.yml.
bStats receives anonymous usage data such as plugin version, server software and version, Java/OS, player count, online mode, core count, managed backend count on Velocity, and a random installation UUID. It does not receive player names, UUIDs, IPs, chat, commands, permissions, configuration files, or server names.
Update notifications
After the server has fully started, monban checks Modrinth for a newer release. If Modrinth is unavailable, it falls back to GitHub Releases. If both are unavailable, the check is skipped silently. The check does not block startup and does not send server or player data.
When a newer release is found, the log contains the latest version and a link to modrinth.com/plugin/monban.
Upgrading to 3.4
- Back up
plugins/monban/on Velocity and every synchronized backend. - Update Velocity and all synchronized backends together; protocol v4 is not mixed-version compatible.
- Set
identity.floodgate.enabledexplicitly if you use Floodgate. - Review the new
metricssection. - Before downgrading to 3.3.0, delete the
metricssection; 3.3.0 rejects unknown root fields and will fail closed. - Velocity below 3.5.1 is rejected at startup with a clear message.
Security notes
backend-permissions.allow-unverified-identityonly allows startup; it does not make an identity verified.- Keep backend ports closed to everything except the proxy.
- Keep
sync.ymlprivate and identical on all participants. - Update Velocity and all synchronized backends together.
- Keep Floodgate's key material private.
- Treat fail-closed startup failures as configuration errors to fix, not as permission to disable guards.
Documentation
Full setup, configuration, commands, storage, permissions, Geyser/Floodgate, backend synchronization, and hybrid authentication documentation is available at monban.miyu.pw.
Building
./gradlew clean build
License
monban is licensed under the Mozilla Public License 2.0.
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 monban (Whitelist)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
monban 3.4.0 — 安全与可靠性版本
monban 3.4.0 是一次专注于提高访问决策难以被绕过以及同步网络操作更安全的安全与可靠性更新。
除了提供退出 bStats 指标和更新通知外,它没有添加新的访问控制功能。主要更改包括:后端身份验证采用故障关闭(fail-closed)机制、新的同步协议、持久的重放保护以及更精简、更清晰的代码库。
亮点
- 故障关闭的 Bukkit 后端身份:当无法验证经过身份验证的 Velocity 转发时,启动将被拒绝
backend-permissions.allow-unverified-identity现在是一个明确的、会产生警告的显式选择加入选项,用于有意未经验证的设置- Paper 会拒绝 Velocity 现代转发与旧版
settings.bungeecord: true的组合 - 带有持久纪元(epoch)和每后端水印的后端同步协议 v4
- 在后端重启后,重放或过期的快照将被拒绝
state-revision和同步水印支持持久写入,并尽力进行目录 fsync- 仅当同步状态实际发生变化时才写入状态修订
- 处理具有相同修订版本的快照时具备幂等性:完全相同的重复项被视为空操作,缺失或分叉的后端状态会得到修复
- 缺少
enabled字段的identity.floodgate部分现表示禁用 - bStats 指标默认启用,可按插件或全局禁用
- 在完全启动后报告较新版本,使用 Modrinth,GitHub Releases 作为后备
- 玩家组删除会在删除组之前移除分配,从而避免失败时产生孤立分配
/monban帮助命令现在在所有平台上均显示真实的插件版本- 移除了无效的
ConnectionIdentityEnvelope和FileBackendServerConfigLoader - 低于 3.5.1 的 Velocity 将在启动时被拒绝,并显示清晰的消息,而不是抛出
NoSuchMethodError
破坏性变更
同步协议 v4
3.4.0 和 3.3.0 会相互拒绝对方的快照。这是有意为之的故障关闭行为。
请同时更新 Velocity 代理和所有同步后端。混合网络将无法接收同步状态;在未更新之前,后端不会暴露任何 monban 权限。
将整个网络回滚至 3.3.0 仍然可行。state-epoch 和 sync-watermark.yml 会被旧版本忽略,可以保留在原位。
部分 Floodgate 配置
缺少 enabled 字段的 identity.floodgate 部分现表示禁用。Geyser/Floodgate 网络必须显式设置:
identity:
floodgate:
enabled: true
require-provider: true
当 enabled: false 时,require-provider 无效。
指标部分与降级
3.4.0 始终会将 metrics 部分写入 config.yml。旧的 3.3.0 构建会拒绝未知的根字段,因此在降级到 3.3.0 之前,您必须删除 metrics 部分。否则,monban 将拒绝启动并拒绝所有登录,直到该部分被移除。
Velocity 最低版本要求
Velocity 3.5.1 现在是最低支持的版本。旧版 Velocity 将在启动时因兼容性消息而失败。
下载
选择适合您平台的 JAR 文件:
monban-bukkit-spigot-3.4.0.jar— Bukkit / Spigotmonban-paper-folia-3.4.0.jar— Paper / Foliamonban-velocity-3.4.0.jar— Velocity
请勿在同一服务器上安装多个平台构建。
兼容性
- Java:最低 21
- Spigot / Paper / Folia:最低 1.21
- Velocity:最低 3.5.1
- 推荐 3.4.0 线路:1.21.11 搭配 Java 21
- Paper 26.x:API 兼容且需要 Java 25;在将其声明为您的生产线路之前,仍建议进行运行时验证
- 支持 Spigot、Paper、Purpur 及其他即插即用式 Bukkit/Paper 兼容分支;Spigot 和 Paper 已单独测试,分支 API 兼容但不提供单独保证
- 不支持混合分支,如 Mohist、Arclight 和 Cardboard
- Velocity 4.x 在 3.4.0 中未获官方支持;可以尝试,但无保证
- 不支持 Fabric、NeoForge、BungeeCord、Java 低于 21 以及 Minecraft/API 低于 1.21
升级同步 Velocity 网络
- 备份 Velocity 和所有同步后端上的
plugins/monban/。 - 停止 Velocity 和所有同步后端。
- 将 Velocity JAR 和每个后端 JAR 替换为 3.4.0。
- 首先启动 Velocity。它会自动创建
plugins/monban/state-epoch。 - 启动后端。每个后端在接受第一个快照后会创建
plugins/monban/sync-watermark.yml。 - 验证权限是否正常工作,并且后端日志中没有包含过期或版本相关的拒绝记录。
如果需要回滚,请将整个网络回滚至 3.3.0。切勿在同步网络中混用 3.3.0 和 3.4.0。
升级独立服务器
独立的 Bukkit、Spigot、Paper 和 Folia 安装可以直接替换 JAR 文件。
Minecraft 的原生白名单必须保持禁用:
white-list=false
首次启动后检查 config.yml。新的 metrics 部分会自动写入,Velocity 配置中的部分 Floodgate 部分会被规范化为显式值。
指标与隐私
bStats 指标默认启用。可以在以下任一位置禁用:
metrics:
enabled: false
或在 plugins/bStats/config.yml 中全局禁用。
bStats 接收匿名使用数据,例如插件版本、服务器软件和版本、Java/操作系统、玩家数量、在线模式、核心数量、Velocity 上管理的后端数量以及随机安装 UUID。它不接收玩家名称、UUID、IP、聊天内容、命令、权限、配置文件或服务器名称。
安全说明
allow-unverified-identity仅允许启动;它不会使身份变为已验证。- 保持后端端口对所有非代理流量关闭。
- 保持
sync.yml私有,并在所有参与者之间保持一致。 - 同时更新 Velocity 和所有同步的后端。
- 水印会在应用快照之前持久化。如果无法写入水印,则拒绝应用快照。
验证
发布版本已通过自动化测试套件(701 项测试)和 CI 覆盖。在生产部署前,仍建议在具体的拓扑结构下对生产环境中的 Paper、Folia 和 Velocity 服务器进行运行时检查。
文档
完整的设置指南、配置参考、命令、权限、同步、Floodgate 以及升级文档:
感谢所有持续使用 monban、测试新同步行为,并帮助在 release 之前暴露 fail-closed 路径的每一位用户 ૮ ˶ᵔ ᵕ ᵔ˶ ა
monban 3.3.0 — Geyser & Floodgate Release
monban 3.3.0 是一个针对 Geyser 和 Floodgate 的更新,它将经过身份验证的基岩版玩家纳入 Velocity 上的 monban 访问控制模型中。
基岩版连接现在可以解析为独立的 FLOODGATE 身份,而不是被当作 Java 版的 ONLINE 或 OFFLINE 玩家处理。Floodgate 仍是可选的:纯 Java 网络不需要它,现有的 Java 访问记录也保持其原有含义。
亮点
- Velocity 上支持可选的 Geyser 和 Floodgate 集成
- 新增
FLOODGATE身份类型,独立于 Java 版的ONLINE和OFFLINE - Floodgate 的 Java 用户名经过规范化处理,并用作持久的访问密钥
- 配置的前缀和空格替换功能适用于默认的
.Name格式 - XUID 作为可选元数据保留,不改变身份匹配逻辑
- Floodgate 选择器可用于白名单、作用域访问、组以及直接权限
- Velocity 配置文件中包含明确的
identity.floodgate设置 - Floodgate 集成默认处于禁用状态
- Floodgate 是 Velocity 的可选依赖项,并具有正确的插件加载顺序
- 一旦检测到提供程序,提供程序的故障将拒绝连接,而不是静默回退到 Java 身份
require-provider: true会在启动时因缺少 Floodgate API 而明显报错- 现有的 Java 身份处理和访问记录保持兼容
下载
选择适合您平台的 JAR 文件:
monban-bukkit-spigot-3.3.0.jar— Bukkit / Spigotmonban-paper-folia-3.3.0.jar— Paper / Foliamonban-velocity-3.3.0.jar— Velocity
请勿在同一服务器上安装多个平台版本的构建包。
Java
monban 面向 Java 21 字节码。
运行时要求仍然取决于 Minecraft 平台和版本。特别是,Paper 26.1+ 需要 Java 25。
独立服务器
对于独立的 Bukkit、Spigot、Paper 或 Folia 服务器,必须禁用 Minecraft 原生的白名单:
white-list=false
monban 仍作为本地白名单的管理者,并提供 /monban whitelist 命令用于管理。
Floodgate 身份解析属于 Velocity 构建部分。独立服务器和后端构建包继续使用 Java 版的 ONLINE 和 OFFLINE 身份。
Velocity 网络
Velocity 仍然是网络准入、后端作用域访问、玩家组和权限的中心权威机构。
现有的 Java 访问记录和后端同步继续像以前一样工作。
Geyser 和 Floodgate
在 Velocity 上安装 Geyser、Floodgate 和 monban。在 plugins/monban/config.yml 中启用集成:
identity:
mode: AUTO
floodgate:
enabled: true
require-provider: true
Floodgate 默认处于禁用状态。当基岩版访问控制是生产网络的一部分时,建议使用 require-provider: true:如果无法发现 Floodgate API,monban 将在启动时明显报错。
一旦检测到提供程序,登录期间的提供程序错误将拒绝连接,而不是静默回退到 Java 身份。
使用报告给 monban 的 Floodgate Java 用户名,包括为未链接账户配置的前缀。XUID 仅为可选元数据,不作为匹配键:
/monban whitelist add floodgate .BedrockName
/monban access grant server survival floodgate .BedrockName
/monban user .BedrockName floodgate group add bedrock
对于已链接的账户,Floodgate 报告的 Java 用户名可能与原始基岩版名称不同。请使用 monban 实际报告的值。
同步的后端权限继续应用于由后端解析的 Java 版 ONLINE 或 OFFLINE 身份。Floodgate 组和直接权限在 Velocity 上进行评估,在 3.3.0 版本中不会在后端重新匹配为 FLOODGATE。
升级
现有的 Java 访问记录保留其 ONLINE 和 OFFLINE 的含义。没有 Floodgate 块的 Velocity 配置会接收显式的默认值,因此升级后请检查重写后的配置文件。Floodgate 直到明确启用之前仍处于禁用状态。
请参阅 3.3 升级指南 以获取完整的检查清单。
文档
完整设置指南、配置参考、命令、权限、Velocity 设置、Geyser 和 Floodgate 设置、后端同步以及混合认证文档:
感谢所有使用 monban 并在过程中分享反馈的人 (˶ ¯ ꇴ ¯ ˶)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
评论 0
登录后参与评分
还没有评论,来抢沙发吧