精准掌握每位玩家退出的原因
DisconnectLogger 会记录你的 Paper 服务器上每一次断连的原因、连接阶段以及是哪个插件导致的。它还能识别那些在加入服务器之前就断开连接的扫描机器人,从而避免它们刷屏控制台。
功能
• 每次断连的原因:正常退出(quit)、踢出(kick)、超时(timeout)、协议错误(protocol error)、登录被拒(denied login)。
• 插件追责:对于踢出事件,列出触发该操作的插件链(例如 Essentials <- Vulcan)。对于登录被拒的情况,列出决定该结果的插件处理器。
• 机器人/扫描器检测:在加入前就断开的连接,如果用户名看起来是生成的(如 FuzzyToad6891)或同一地址反复重连,会被标记为 SUSPECT-BOT。
• 整洁且带颜色的控制台输出:每个事件一行,带有标签:[KICK]、[DENIED]、[TIMEOUT]、[DROP]、[BOT]、[LEFT]。
• 纯文本日志文件:plugins/DisconnectLogger/disconnects.log,每行一个事件,方便使用 grep 命令检索。
• 可选的 Discord 通知:通过你已有的 DiscordSRV 机器人将踢出和登录被拒的消息发送到指定频道。
• 游戏内统计:/dclog recent、/dclog stats。
安装
将 jar 文件放入 plugins/ 目录,重启服务器,然后根据需要编辑 plugins/DisconnectLogger/config.yml 以配置 Discord 通知或更改机器人匹配模式。在游戏中或控制台中使用 /dclog help 查看帮助。
命令与权限
/dclog recent [n] 显示最近几次断连记录(默认 10 条,最多 50 条)。/dclog stats 显示自启动以来最常见的原因和 IP 地址。/dclog reload 重新加载配置文件。权限节点:disconnectlogger.admin(默认需要 OP 权限)。
要求
Paper(或其分支)1.21 或更高版本,Java 21+。可选:DiscordSRV 用于 Discord 通知功能。开发及测试环境基于 Paper 26.3;旧版本可能也能正常运行,但未经过正式测试。
注意事项
“插件追责”尽力而为:它会读取踢出事件的调用栈以及登录被拒事件的监听器优先级。如果某个插件通过原始数据包踢出玩家(部分反作弊插件如此操作),日志会如实说明而非猜测。在进入登录事件之前断开的连接是通过监听服务器自身控制台输出来检测的,因此仅能获取用户名、IP 地址和原因。无遥测数据:唯一的网络活动是通过你自己的 DiscordSRV 机器人发送可选的 Discord 通知。
由 FreakPlot 制作。访问 freakplot.minecraft.best 游玩
Know exactly why every player leaves
DisconnectLogger records every disconnect on your Paper server with the reason, how far the connection got and which plugin caused it. It also spots scanner bots that connect and drop before ever joining, so they stop cluttering your console.
Features
• Reason for every disconnect: quit, kick, timeout, protocol error, denied login.
• Plugin blame: for kicks, the chain of plugins that triggered it (for example Essentials <- Vulcan). For denied logins, the plugins whose handlers decided the result.
• Bot / scanner detection: connections that drop before joining are tagged SUSPECT-BOT when the name looks generated (like FuzzyToad6891) or the same address keeps reconnecting.
• Clean, coloured console: one tagged line per event: [KICK], [DENIED], [TIMEOUT], [DROP], [BOT], [LEFT].
• Plain log file: plugins/DisconnectLogger/disconnects.log, one line per event, easy to grep.
• Optional Discord feed: posts kicks and denied logins to a channel through your existing DiscordSRV bot.
• In-game stats: /dclog recent, /dclog stats.
Install
Drop the jar into plugins/, restart, then edit plugins/DisconnectLogger/config.yml if you want the Discord feed or a different bot pattern. Use /dclog help in game or console.
Commands and permission
/dclog recent [n] shows the last disconnects (default 10, max 50). /dclog stats shows top reasons and addresses since startup. /dclog reload reloads the config. Permission: disconnectlogger.admin (default: op).
Requirements
Paper (or a Paper fork) 1.21 or newer, Java 21+. Optional: DiscordSRV for the Discord feed. Developed and tested on Paper 26.3; older versions should work but have not been tested.
Notes
Plugin blame is a best effort: it reads the call stack of a kick and the listener priorities of a denied login. If a plugin kicks players through raw packets (some anti-cheats do), the log says so instead of guessing. Connections that drop before the login event are detected by watching the server's own console line, so only the name, address and reason are known. No telemetry: the only network use is the optional Discord feed through your own DiscordSRV bot.
Made by FreakPlot. Play at freakplot.minecraft.best
评论 0
登录后参与评分
还没有评论,来抢沙发吧