Skip to content

FakePlayer-CE.Build3

Choose a tag to compare

@EndlessPixel EndlessPixel released this 11 Sep 09:25
· 184 commits to master since this release

FakePlayer-CE.Build3

Stabilizing the Core: NMS Lifecycle & Interaction Fixes
This release focuses on internal stability, fixing critical crashes during plugin reloads and enhancing NMS compatibility for the latest Minecraft versions. We also introduced a new interaction command for Fakeplayers.

Highlights

  • New /fp say Command: Fakeplayers can now send chat messages directly via NMS network packets.
  • NMS Stability: Fixed lifecycle management issues, preventing crashes during /reload or plugin disabling.
  • Slim & Efficient: Continued use of ShadowJar to ensure a lightweight build (~500KB).

Critical Fixes

  • Fixed Chat Method Signature: Adapted to the new API by adding the missing lastSeenMessages parameter, resolving NoSuchMethodError in newer versions.
  • Fixed Plugin Reload Crashes: Implemented graceful shutdown logic to unregister commands and clean up resources, preventing IllegalPluginAccessException.
  • Fixed NMS Packet Handling: Refined ClientboundRespawnPacket and motion packet handling for better cross-version compatibility (1.20.1 - 26.2).
  • Fixed BungeeCord Channel: Corrected plugin message channel validation to ensure compatibility with proxy networks.

Usage

  • Java: 21+ (Java 25 recommended for 26.x support)
  • Server: Paper 1.20.1+ (Purpur compatible)
  • API: CommandAPI 11.1.0+

️ Credits


FakePlayer-CE.Build3 —— 核心稳固:NMS 生命周期与交互修复

本次更新专注于内部稳定性,修复了插件重载时的关键崩溃问题,并增强了针对最新 Minecraft 版本的 NMS 兼容性。同时,我们为假人引入了全新的交互指令。

核心特性

  • 新增 /fp say 命令:假人现在可以通过 NMS 网络包直接发送聊天消息。
  • NMS 稳定性提升:修复了生命周期管理问题,防止在执行 /reload 或禁用插件时发生崩溃。
  • 轻量高效:继续使用 ShadowJar 构建,保持极致轻量的体积 (~500KB)。

关键修复

  • 修复聊天方法签名不匹配:适配新版 API,补充了缺失的 lastSeenMessages 参数,解决了新版服务端报错的问题。
  • 修复插件重载崩溃:实现了优雅停机逻辑,正确注销命令并清理资源,防止出现 IllegalPluginAccessException。
  • 修复 NMS 数据包处理:优化了 ClientboundRespawnPacket 和实体运动包的处理逻辑,提升跨版本兼容性 (1.20.1 - 26.2)。
  • 修复 BungeeCord 通道问题:修正了插件消息通道的校验逻辑,确保在代理网络环境下的兼容性。

使用要求

  • Java: 21+ (推荐 Java 25 以支持 26.x)
  • 服务端: Paper 1.20.1+ (兼容 Purpur)
  • API: CommandAPI 11.1.0+

️ 鸣谢