MOTDGate
MOTDGate 是一个小型 Paper 插件,它会向从未成功加入过服务器的地址隐藏服务器正常的 MOTD(每日消息)。它旨在让其他 MOTD 插件继续管理正常的服务器列表响应,同时向仅进行 ping 操作的扫描器返回一个安全、可配置的响应。
行为
- 新地址会看到配置的安全 MOTD,并且默认情况下不会显示图标、玩家样本或玩家数量,在服务器列表中。
- 在该地址的玩家成功加入后,来自该地址的后续 ping 请求将不受影响。
- Ping 监听器以
HIGHEST 优先级运行,并仅更改配置好的响应字段。协议和版本信息不会被修改。
- 当
enable-query=true 时,GameSpy 4 的基本查询和完整查询会被限制。由于该协议不支持 Adventure 组件,其安全 MOTD 为 motd 的纯文本形式。启用后,玩家数量和玩家样本设置分别报告 0/0 和无玩家。
- 没有命令或权限。
通过 MiniMessage 在 plugins/MOTDGate/config.yml 中配置响应:
motd: "A Minecraft Server"
# 如果为 true,则使用 plugins/MOTDGate/icon.png。
# 如果文件不存在,则不发送图标。
replace-icon: true
# 从未知地址隐藏玩家列表悬停/样本(以及 GameSpy 完整查询中的玩家列表)。
hide-player-sample: true
# 隐藏在线/最大玩家数量,显示 ???(或在 GameSpy 查询中显示 0/0)。
hide-player-count: true
更改配置后重启服务器。若要忘记所有已知地址,请停止服务器并删除 plugins/MOTDGate/known-addresses.txt。
存储的数据
MOTDGate 仅存储由 IP 地址字节派生的密钥 HMAC-SHA-256 值。它不会存储原始地址、端口、玩家名称、UUID 或时间戳。随机密钥生成于 plugins/MOTDGate/secret.key;请保持该文件的私密性,除非你也想使所有已知地址记录失效,否则不要删除它。记录不会自动过期。
HMAC 是一种数据最小化措施,而不是保证它们是法律意义上的匿名数据。
限制
MOTDGate 不是访问控制,也不会阻止客户端连接。地址可能会发生变化,而 NAT 后面的多个人共享一个公共地址。因此,一次成功的加入会识别整个公共地址,而地址发生变化的玩家将在再次加入之前看到安全 MOTD。
MOTDGate
MOTDGate is a small Paper plugin that hides a server's normal MOTD from addresses that have never
successfully joined. It is intended to let another MOTD plugin continue managing the normal server
list response while returning a safe, configurable response to ping-only scanners.
Behavior
- A new address sees the configured safe MOTD, and by default no favicon, player sample, or player
count, in the server list.
- After a player at that address successfully joins, future pings from it are left untouched.
- The ping listener runs at
HIGHEST priority and changes only configured response fields. Protocol
and version information are not changed.
- GameSpy 4 basic and full queries are gated when
enable-query=true. Because that protocol does
not support Adventure components, its safe MOTD is the plain-text form of motd. When enabled,
the player-count and player-sample settings report 0/0 and no players, respectively.
- There are no commands or permissions.
Configure the response in plugins/MOTDGate/config.yml using
MiniMessage:
motd: "A Minecraft Server"
# If true, use plugins/MOTDGate/icon.png.
# If the file is missing, send no favicon.
replace-icon: true
# Hide the player-list hover/sample (and GameSpy full-query player list) from unknown addresses.
hide-player-sample: true
# Hide online/max player counts, showing ??? (or 0/0 in GameSpy queries).
hide-player-count: true
Restart the server after changing the configuration. To forget all known addresses, stop the server
and delete plugins/MOTDGate/known-addresses.txt.
Stored data
MOTDGate stores only keyed HMAC-SHA-256 values derived from IP address bytes. It does not store raw
addresses, ports, player names, UUIDs, or timestamps. A random key is generated at
plugins/MOTDGate/secret.key; keep that file private and do not delete it unless you also want to
invalidate all known-address records. Records do not expire automatically.
The HMACs are a data-minimization measure, not a guarantee that they are legally anonymous data.
Limitations
MOTDGate is not access control and does not prevent clients from connecting. Addresses can change,
and multiple people behind NAT share one public address. Consequently, one successful join recognizes
that whole public address, while a player whose address changes will see the safe MOTD until joining
again.
评论 0
登录后参与评分
还没有评论,来抢沙发吧