Repository navigation
FakePlayer-CE.Build17
·
94 commits
to master
since this release
FakePlayer-CE.Build17
fp sysinfo, /fp version, /fp update check & 日本語対応
This build is mostly about making problems easier to report: three new commands give you the build you're running, whether a newer one exists, and a single JSON file with the machine and fake-player state to attach to an issue. Japanese joins the shipped locales, /fp goto can be cancelled on its own, and a round of threading and "wrong fake player" bugs are gone.
Highlights
- New
/fp sysinfo. Writesplugins/FakePlayer-CE/sysinfo/<timestamp>.jsonwith Java and JVM details (vendor, VM build,-Xmx/-Xms, memory and GC flags, the collectors actually in use, uptime), CPU model and core count, JVM and physical memory, disk usage, TPS/MSPT, and every online fake player's world, position and running actions. One file instead of six questions. - New
/fp version. Prints the running build, the server implementation and version, and the Java version. No permission needed, so anyone filing a report can run it. - New
/fp update check. Asks GitHub for the latestfp.buildNand prints it with the download link;/fp updatedoes the same. The check used to run only at startup and log to the console, so nobody in-game could see it. - Japanese localization. Messages, command descriptions and help text ship in Japanese — set
i18n.locale: ja. - New
/fp goto stop [name]. Cancels an ongoing walk without touching anything else; previously only/fp stopcould end it, which aborted every action of that fake player.
Breaking Changes
config.ymlversion 32 → 33. The only change is thei18n.localecomment now listingja; no settings were added, renamed or removed, so an existing file keeps working as-is./fp sysinfoand/fp update checkare OP-only./fp versionhas no permission requirement.- Documentation layout:
SECURITY,CONTRIBUTING,CODE_OF_CONDUCTandBUILDmoved intodocs/. Old links still resolve through GitHub, but bookmarks to files may need updating.
Critical Fixes
/fp kick -aand/fp kill -adid nothing for operators.-afiltered by creator even for ops and the console, so it only ever matched fake players that sender had spawned; it now means every fake player, matching/fp kickall.- A typo in a name acted on a different fake player. When the name didn't match, commands fell back to the selected (or only) fake player, so
/fp tp wrongnamecould move someone else's; they now report that nothing matched. - Fake players could be teleported away while spawning. Join-teleport handlers from other plugins (Essentials spawn, hubs) moved a fake player off the position the spawn flow computed; teleports outside the intended destination are now refused for that short window.
- LibreLogin authorization ran off-thread. The exemption was applied asynchronously after the fake player had already joined, so plugins watching the login session (FastLogin and friends) saw an unauthorized player; it now runs on the entity thread as part of the join.
- HTTP admin endpoints touched fake players from the wrong thread. Teleport, look, sneak, sprint, ping and the other per-fake-player writes ran on the HTTP executor thread (
setpingnot even hopping off it), violating Folia's region threading and racing the entity thread on Paper. - HTTP
/spawnnow answers504instead of blocking. A slow spawn held the request for the full 15-second timeout and then failed without a usable body; it now returnsSpawn is still in progress, check /list laterand lets the spawn continue. hasActiveActionand/fp stopdisagreed about continuous actions. Actions withremains = -1weren't counted as active, and the stop guard compared a ticker object against anActionSetting, which never matched./fp saydropped messages whenoncewas used repeatedly. Once commands were queued as a single replaceable action, so two in the same tick left only the last one./fp say helpnow matches every other command. Same paginated list, and the usage line spells out each subcommand's arguments includinginterval <ticks>— following the docs no longer sends the name where a tick count is expected.- Password and TPS-protection messages are translatable. Both were hardcoded, so
i18n.localehad no effect on them.
Important Notes
/fp sysinfodeliberately does not dump every JVM argument.-Ddb.password=...and friends live in there, and the file is meant to be attached to a public issue, so only memory and GC flags are included; the rest is reported asother_arg_count./fp update checkneeds outbound HTTPS toapi.github.com. On a server without internet it reports the failure instead of hanging — nothing else is affected./fp sysinfoneeds a writable plugin directory. If the file can't be written it says so and returns.restore-fakeplayers.txtand other snapshot files are unchanged in this build.
Usage
- Java: 25+ (required)
- Server: Paper / Leaf 1.20.1+ (Purpur compatible; 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
- @MCForgeTitle123 (issues #111, #112:
/fp sayhelp and argument order) - @lldxlzy (issue #114:
/fp say oncedropping messages)
FakePlayer-CE.Build17 —— 性能快照、版本自查与日语支持
这一版主要在「让问题更好报」:三个新命令分别告诉你当前是什么版本、有没有新版、以及一份能直接贴进 issue 的机器与假人状态快照。日语加入内置语言,/fp goto 可以单独中止,另外修掉了一批线程相关与「操作到别人假人」的问题。
核心特性
- 新增
/fp sysinfo。 把 Java 与 JVM 信息(厂商、VM 版本、-Xmx/-Xms、内存与 GC 参数、实际生效的收集器、运行时长)、CPU 型号与核心数、JVM 与物理内存、磁盘占用、TPS/MSPT,以及每个在线假人的所在世界、坐标与正在执行的动作,写成plugins/FakePlayer-CE/sysinfo/<时间戳>.json。一个文件替代六个追问。 - 新增
/fp version。 输出当前版本、服务端实现与版本、Java 版本,无需权限——报 issue 的人自己就能跑。 - 新增
/fp update check。 查 GitHub 上最新的fp.buildN并给出下载地址,/fp update等价。此前只在开服时往控制台打日志,游戏内看不到。 - 新增日语本地化。 消息、命令描述与帮助文本均提供日语版本,把
i18n.locale设为ja即可。 - 新增
/fp goto stop [假人]。 只中止正在进行的寻路,不影响其它动作;此前只能用/fp stop,会把该假人的所有动作一起停掉。
破坏性变更
config.yml版本 32 → 33。 唯一的变化是i18n.locale的注释里多了ja,没有新增、重命名或删除任何配置项,旧文件照常使用。/fp sysinfo与/fp update check仅 op 可用。/fp version不设权限。- 文档目录调整:
SECURITY、CONTRIBUTING、CODE_OF_CONDUCT、BUILD收进了docs/。GitHub 上的旧链接会自动跳转,但收藏夹可能需要更新。
关键修复
/fp kick -a与/fp kill -a对 op 无效。-a原先仍按创建者过滤,op 与控制台执行时只看自己召唤的假人;现在作用于全服假人,与/fp kickall一致。- 名字打错会操作到另一个假人。 名字匹配不到时原先回退到「选中/唯一的假人」,例如
/fp tp 打错的名字会传送别人家的;现在直接报「找不到匹配的假人」。 - 出生过程中假人会被其它插件传走。 Essentials 的 spawn 处理、出生点插件等会在假人刚进服时把它移到别处,导致生成流程算出的落点失效;现在出生窗口内会拒绝目标以外的传送。
- LibreLogin 授权在异步线程执行。 免登录原先在假人已进服之后异步授权,FastLogin 这类监听登录会话的插件会看到「未登录」的玩家;现在随进服流程在实体线程同步完成。
- HTTP 管理接口在错误线程操作假人。 传送、朝向、潜行、疾跑、延迟等写操作原先跑在 HTTP 线程(
setping甚至完全没切线程),Folia 下违反区域线程模型、Paper 下与实体线程竞争。 - HTTP
/spawn超时改为返回504。 生成较慢时原先会阻塞满 15 秒再失败,且没有可用响应;现在返回Spawn is still in progress, check /list later,生成继续在后台进行。 hasActiveAction与/fp stop对持续动作判断不一致。remains = -1的动作原先不计入活跃,而stop的守卫拿 ticker 对象去比ActionSetting,永远不成立。- 连续执行
/fp say once会丢消息。 once 原先作为可替换的单条动作排队,同一 tick 连发两次只剩最后一条。 /fp say的帮助与其它命令统一。 同样的分页列表,用法行逐一写清各子命令参数(含interval <ticks>),照文档传参不会再出现「名字被当整数」。- 密码与 TPS 保护的消息改为翻译键。 这两处原先写死,改
i18n.locale不生效。
重要说明
/fp sysinfo刻意不导出全部 JVM 参数。-Ddb.password=...这类东西常在参数里,而这份文件是要贴到公开 issue 的,所以只保留内存与 GC 两组,其余只报other_arg_count。/fp update check需要能出网 访问api.github.com;没有外网的服务器会直接提示失败,不影响其它功能。/fp sysinfo需要插件目录可写。 写不进去会明确报错,不会静默失败。restore-fakeplayers.txt等快照文件在本版没有变化。
使用要求
- Java:25+(必需)
- 服务端:Paper / Leaf 1.20.1+(兼容 Purpur;支持 Folia)
- API:CommandAPI 12.0.0+(Minecraft 26.3 需 12.1.0+)
- 可选集成:SkinsRestorer(正版皮肤)、AuthMe / CatSeedLogin / LibreLogin(登录插件 API 免登录)、PlaceholderAPI
鸣谢
- CE 维护:@EndlessPixel
- @MCForgeTitle123(issue #111、#112:
/fp say帮助与参数顺序) - @lldxlzy(issue #114:
/fp say once丢消息)