? 安装指南
Player-Detector 专为 Fabric 加载器构建。你还需要 Fabric API —— 缺少它模组将无法运行。
安装 Fabric Loader(大多数第三方启动器如 Prism、MultiMC 或 Modrinth 均可自动完成此操作)。
从 Modrinth / CurseForge / GitHub 下载 Fabric API 和 Player-Detector。
将两个 .jar 文件放入你的 mods 文件夹中。
启动 Minecraft。要验证安装是否正确,邀请朋友加入你的世界(开放至局域网)或连接到你的服务器 —— 你应该会看到弹出提示和/或聊天消息。
除非你想调整,否则无需进行任何更改。默认设置会在每次玩家加入或离开时显示一个弹出提示(右上角)以及一条聊天消息。若要更改行为,请编辑配置文件或使用 ModMenu(如果已安装)。
✨ 功能
视觉弹出提示 – 原版风格的 Toast 通知(与进度/配方解锁相同)。
加入/离开消息 – 完全自定义文本,支持 {player} 和 {server} 等占位符。
登录成就 – 为加入的玩家授予临时或永久的进度(例如“检测到!”)。
按玩家类型切换 – 针对好友、管理员或所有玩家显示通知。
冷却与过滤 – 防止在服务器重载或快速重连时产生垃圾信息。
所有功能均支持客户端(单人游戏)和服务器端(多人游戏)。在专用服务器上,仅服务器需要安装该模组即可发送聊天消息,但视觉弹出提示要求每个客户端也安装 Player-Detector。
✅ 需求与兼容性
Minecraft:1.19.2 – 1.21+(请查看文件页面以获取确切版本)
Mod 加载器:Fabric Loader 0.14.21 或更高版本
依赖项:Fabric API(任何近期版本)
可选:ModMenu(用于游戏内配置)
Player-Detector 旨在与更广泛的模组生态系统兼容。它不涉及渲染、世界生成或底层网络。你可以安全地将其与 Sodium、Lithium、Iris、OptiFabric 以及大多数内容模组一起使用。
已知问题:暂无报告。如果你遇到错误,请在我们的问题跟踪器上提交 Issue。
? 如何报告问题
请使用本页顶部链接的问题跟踪器。请包含以下内容:
Minecraft 版本、Mod 加载器版本和 Fabric API 版本。
你安装的其他模组的完整列表。
任何崩溃报告或 latest.log 文件(粘贴到 gist 或作为文本文件附件)。
注意:在低端硬件或服务器严重卡顿的情况下,视觉弹出提示可能会有轻微延迟,但核心检测功能依然可靠。
? 性能说明
Player-Detector 极其轻量。它仅在玩家登录或登出时运行代码 —— 每个事件通常只需几微秒。即使在有大量玩家不断加入和离开的服务器上,其开销也可忽略不计。没有 Tick 循环操作,除了标准的 Minecraft 加入事件外,无额外网络流量。
? Installation Guide
Player-Detector is built for Fabric Loader. You also need Fabric API – the mod will not function without it.
Install Fabric Loader (most third‑party launchers like Prism, MultiMC, or Modrinth can do this automatically).
Download Fabric API and Player-Detector from Modrinth / CurseForge / GitHub.
Place both .jar files into your mods folder.
Launch Minecraft. To verify correct installation, ask a friend to join your world (open to LAN) or connect to your server – you should see a pop‑up and/or chat message.
You don’t need to tweak anything unless you want to. Default settings show a toast pop‑up (top‑right corner) plus a chat message for every join and leave. To change behaviour, edit the config file or use ModMenu (if installed).
✨ Features
Visual pop‑ups – Vanilla‑style toast notifications (same as advancements / recipe unlocks).
Join / leave messages – Fully customisable text, with placeholders like {player} and {server}.
Achievements on login – Grants a temporary or permanent advancement to the joining player (e.g. “Detected!”).
Toggle per player type – Show notifications for friends, ops, or everyone.
Cooldown & filtering – Prevents spam during server reloads or rapid reconnects.
All features work client‑side (single‑player) and server‑side (multiplayer). On dedicated servers, only the server needs the mod for chat messages, but visual pop‑ups require each client to also have Player-Detector installed.
✅ Requirements & Compatibility
Minecraft: 1.19.2 – 1.21+ (check file page for exact version)
Mod Loader: Fabric Loader 0.14.21 or newer
Dependency: Fabric API (any recent version)
Optional: ModMenu (for in‑game configuration)
Player-Detector is designed to be compatible with the wider modding ecosystem. It does not touch rendering, world generation, or low‑level networking. You can safely use it alongside Sodium, Lithium, Iris, OptiFabric, and most content mods.
Known issues: None reported. If you encounter a bug, please open an issue on our issue tracker.
? How to Report Issues
Please use the issue tracker linked at the top of this page. Include:
Minecraft version, mod loader version, and Fabric API version.
A full list of other mods you have installed.
Any crash report or latest.log file (paste to a gist or attach as a text file).
Note: Visual pop‑ups may be slightly delayed on low‑end hardware or under severe server lag, but core detection remains reliable.
? Performance Note
Player-Detector is extremely lightweight. It only runs code when a player logs in or out – typically a few microseconds per event. Even on a server with hundreds of players joining and leaving constantly, the overhead is negligible. No tick‑loop operations, no extra network traffic beyond the standard Minecraft join event.
评论 0
登录后参与评分
还没有评论,来抢沙发吧