Skip to content

FakePlayer-CE.Build19

Choose a tag to compare

@EndlessPixel EndlessPixel released this 14 Nov 02:25
· 52 commits to master since this release

FakePlayer-CE.Build19

Velocity support that actually works, per-user language, and four quiet bugs fixed

This build is mostly about things that were silently wrong: proxy detection on a Velocity network, knockback that was applied one tick too late, and removed fake players coming back after a crash. It also adds /fp lang so each player can pick their own display language.

Highlights

  • Velocity proxy support fixed. Detection now also reads proxies.velocity.enabled from config/paper-global.yml, not only settings.bungeecord from spigot.yml. On a Velocity network the old check always failed, so follow-quiting treated every backend switch as a logout and wiped that player's fake players. The FAQ also explains ping-passthrough = "ALL" for MOTD and player count; the tab list needed no change.
  • New /fp lang <code>. Plugin messages follow the client language (or i18n.locale for the console); /fp lang ja forces one for you, /fp lang reset goes back, bare /fp lang lists the current and available codes. Saved per player in plugins/FakePlayer-CE/lang.yml.
  • /fp set and /fp config set explain each feature. Tab completion now shows the localized description of every feature as a tooltip, and only lists the ones you are allowed to set. The names themselves are still English (pickup_items, invulnerable, ...).

Critical Fixes

  • Fixed EasyBot treating fake players as real players (#132). The name map was keyed by lowercase but looked up with the original-case name, so EasyBot never recognised fake players and applied its QQ whitelist to them. The map is case-insensitive now.
  • Fake players take knockback again. The velocity from the knockback packet was applied one tick late, after the server had already restored the entity's motion, so hits barely moved a fake player. It is applied right before its next tick now.
  • A fake player you removed stays removed after a crash. The restore snapshot was only written every 30 seconds, so one removed shortly before an unclean shutdown was spawned again on the next start. Removing a fake player rewrites the snapshot immediately.
  • AI chat requests survive transient failures (#139). 429 and 5xx are retried up to twice with a short backoff, any 2xx (including 201/206) counts as success, and a malformed response body reports a readable IOException instead of an uncaught parse exception.

Breaking Changes

  • None. config.yml stays at version 34, existing files need no edit.

Important Notes

  • The knockback fix covers the 1.21 – 26.3 modules. The 1.20.x modules never simulated knockback and are unchanged.
  • /fp lang creates plugins/FakePlayer-CE/lang.yml. Delete it to reset everyone's choice; it is not part of config.yml and needs no migration.
  • AI chat retries add latency. Two retries with 500 ms / 1 s backoff means a dead endpoint can take ~1.5 s longer to report failure.
  • Repository changes: CI runs google-java-format on every push and commits the result back to the branch; pull requests are only checked, never rewritten.

Usage

  • Java: 25+ (required)
  • Server: Paper / Leaf / Purpur 1.20.1+ (Folia supported)
  • API: CommandAPI 12.0.0+ (Minecraft 26.3 requires 12.1.0+)
  • Optional: SkinsRestorer (premium skins), AuthMe / CatSeedLogin / LibreLogin (login-plugin exemption), PlaceholderAPI

Credits

  • CE maintenance: @EndlessPixel
  • @DZY-QAQ (issue #132: EasyBot whitelist incompatibility)
  • @MCForgeTitle123 (#139 AI chat retries and response parsing, #140 ChatMessage validation and factory methods)
  • xiplugin/FakePlayerPlus for the knockback-timing and restore-snapshot fixes (upstream commits 021bb3d2, b972a97a)

FakePlayer-CE.Build19 —— Velocity 支持真正可用、个人语言切换,外加四个静默缺陷

这个版本主要在补那些一直错得很安静的地方:Velocity 网络下的代理检测、晚了一个 tick 才生效的击退、以及崩溃后重新冒出来的已移除假人。另外新增 /fp lang,让每个玩家挑自己的显示语言。

核心特性

  • 修复 Velocity 代理支持。 代理检测不再只认 spigot.yml 的 settings.bungeecord,也会读 config/paper-global.yml 的 proxies.velocity.enabled。在 Velocity 网络下旧判断永远为 false,于是 follow-quiting 把「跨服」当成「下线」,每次都清掉该玩家名下的假人。FAQ 另外说明了 MOTD 与在线人数包含假人的做法(velocity.toml 里 ping-passthrough = "ALL");tab 列表本来就不需要改。
  • 新增 /fp lang <代码>。 插件消息默认跟随客户端语言(控制台用 i18n.locale);/fp lang ja 可强制指定,/fp lang reset 恢复默认,不带参数则列出当前与可用语言。按玩家保存在 plugins/FakePlayer-CE/lang.yml。
  • /fp set 与 /fp config set 会解释每个配置项。 TAB 补全时为每一项附上对应语言的说明,并且只列出你有权限设置的项;配置名本身仍是英文(pickup_items、invulnerable 等)。

关键修复

  • 修复 EasyBot 把假人当成真实玩家(#132)。 假人名单按小写存键,查询时用的却是原始大小写,EasyBot 于是认不出假人,QQ 白名单对它们也生效。名单现在大小写不敏感。
  • 假人重新会被击退。 击退速度原先晚一个 tick 才应用,那时服务端已经把实体的运动还原,打上去几乎不动;现在改为在假人下一次 tick 之前应用。
  • 手动移除的假人不会再在崩溃后复活。 恢复快照原先每 30 秒才写一次,若在此前服务器异常关闭,刚移除的假人会在下次启动时被恢复;现在假人一离场就重写快照。
  • AI 聊天请求在瞬时故障下不再直接失败(#139)。 429 与 5xx 会退避重试最多两次,201/206 等 2xx 同样算成功;响应体畸形时报出可读的 IOException,不再是未捕获的解析异常。

破坏性变更

  • 无。 config.yml 仍是版本 34,现有配置文件不需要改。

重要说明

  • 击退修复覆盖 1.21 – 26.3 的版本模块。 1.20.x 模块本来就没有模拟击退,行为不变。
  • /fp lang 会生成 plugins/FakePlayer-CE/lang.yml。 想重置所有人的选择直接删掉该文件即可,它不属于 config.yml,不需要迁移。
  • AI 聊天重试会增加延迟。 两次重试、500ms / 1s 退避,端点彻底不通时会多花约 1.5 秒才报错。
  • 仓库侧改动: CI 每次 push 都会跑 google-java-format 并把结果提交回分支;PR 只做校验,不会改作者的代码。

使用要求

  • Java:25+(必需)
  • 服务端:Paper / Leaf / Purpur 1.20.1+(支持 Folia)
  • API:CommandAPI 12.0.0+(Minecraft 26.3 需 12.1.0+)
  • 可选集成:SkinsRestorer(正版皮肤)、AuthMe / CatSeedLogin / LibreLogin(登录插件 API 免登录)、PlaceholderAPI

鸣谢

  • CE 维护:@EndlessPixel
  • @DZY-QAQ(issue #132:EasyBot 白名单不兼容)
  • @MCForgeTitle123(#139 AI 聊天重试与响应解析、#140 ChatMessage 构造校验与工厂方法)
  • xiplugin/FakePlayerPlus 提供了击退时序与恢复快照两个修复的思路(上游提交 021bb3d2、b972a97a)