Repository navigation
·
20 commits
to master
since this release
FakePlayer-CE.Build23
Per-permission limits, a JSON spawn command, multi-model AI, and a smaller jar
This build focuses on giving server owners finer control: fake-player caps can now be raised by permission, spawning can be described with one JSON argument, and AI chat can switch between configured models. Undertow and the MySQL driver are no longer bundled, so the jar is much smaller.
Highlights
- Per-permission fake-player limits (#187, #64).
player-limitstays the default. Addspawn-limitentries such asvip: 10and grantfakeplayer.spawn.limit.vip; when several nodes match, the highest value wins. OPs are not limited, and dynamic TPS limits now respect each player's own cap.config.ymlis version 42. - New
/fp spawnjsonfor advanced spawning.name,uuid,world,x/y/z,yaw/pitchandlifespan_secondscan be combined in one JSON argument. Unknown fields are rejected so typos do not silently do nothing./fp spawnuuidis deprecated; NBT is deliberately not included yet. - AI chat supports multiple models. Define named models under
models:inai-chat.yml, each with its own endpoint and key, and pick the default withactive-model. OPs can switch at runtime with/fp aichat model <name>; the choice is saved. Existing configs keep working as a single implicitdefaultmodel. - AI chat can optionally use inventory context.
inventory-context.fakeplayer/inventory-context.questionerinai-chat.yml, together with the matching per-player switches (aichat_fake_inventory,aichat_questioner_inventory, via/fp config set), add item types and counts to the prompt. Both switches are off by default;config.ymlis version 41. -anow works on every name-based command (#123, #202). OP/console apply it to all fake players, regular players only to their own.select,spawn/spawnuuidandrenameare excluded;kick/killkeep their existing multi-target behavior.- New
name-suffixoption (#144). Custom and generated names can carry a suffix as well as a prefix. Generated names put the sequence number before the suffix (Bot_1_bot);config.ymlis version 40. - Optional libraries are no longer bundled. Undertow and the MySQL driver are downloaded on demand into
plugins/FakePlayer-CE/libswhen HTTP admin or MySQL is enabled. Set-DLeaf.library-download-repo=<url>to choose a Maven mirror (default: Maven Central). Onlyhttp(s)URLs are accepted and downloads stay insidelibs.
Breaking Changes
- No behaviour-breaking changes.
/fp spawnuuidis deprecated in favour of/fp spawnjson, but still works.config.ymlreaches version 42 because of the three new options; existing files keep working and can be upgraded with/fp update config.
Critical Fixes
/fp spawnresolves world names and reports permission errors properly (thanks @boxendo,eb443564). World arguments are resolved by Bukkit world name (dimension keys still work). Missingspawn.name/spawn.locationpermissions now produce explicit messages./fp selectionused the wrong permission, and world-only spawning ignored the world (thanks @boxendo,c436b5cf)./fp spawn <name> <world>now respects the world, and-skips the name argument for players withoutspawn.name.- Fake players are no longer removed twice on 1.21.x (thanks @NotCbop / Cbop and co-author Claude Fable 5,
6aaf570). On 1.21.11,Player.kick()already completed the fake player's disconnect path; the follow-upPlayerList.removefired a secondPlayerQuitEvent, threwIllegalStateException: Already retiredand left ghost bots that/fp kickcould never remove. Removal now runs only when the player is still online after the kick.
Important Notes
- Enabling HTTP admin or MySQL triggers a one-time dependency download at startup. If your server cannot reach Maven Central, set
-DLeaf.library-download-repo=<url>before starting. - AI inventory context is off by default and needs both the global switch and the player's personal switch.
/fp versionreports the CI commit that produced this jar (5a391559). The GitHub tag points at the changelog commit; the difference is a documentation-only commit.
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, AuthMe / CatSeedLogin / LibreLogin, PlaceholderAPI
Credits
- CE maintenance: @EndlessPixel
- @boxendo (
eb443564,c436b5cf: spawn world names, permission errors, selection permission and world-only spawning) - @realmyron (#123) and @zaqnti (#202:
-afor every name-based command) - @kuxiaole (#187) and @Chaostarts (#64: per-permission spawn limits)
- @god-what-is-that (#144) and @fuzhulike (
name-suffiximplementation) - @NotCbop / Cbop and Claude Fable 5 (
6aaf570: 1.21.x double-removal fix)
FakePlayer-CE.Build23 —— 按权限设上限、JSON 召唤、多模型 AI 与更小的 jar
这个版本把控制权交得更细:可以按权限提高假人数量上限,用一条 JSON 参数描述高级召唤,AI 聊天也能在多个已配置模型间切换。Undertow 与 MySQL 驱动不再打包进 jar,产物体积明显变小。
亮点
- 按权限设置假人数量上限(#187、#64)。
player-limit仍是默认值;在spawn-limit中配置如vip: 10并授予fakeplayer.spawn.limit.vip,命中多个权限时取最大值。OP 不受限,动态 TPS 上限也会按玩家实际额度扣减。config.yml版本为 42。 - 新增
/fp spawnjson。name、uuid、world、x/y/z、yaw/pitch、lifespan_seconds可自由组合在一个 JSON 参数里;未知字段直接报错,避免拼错后静默失效。/fp spawnuuid弃用,NBT 暂不支持。 - AI 聊天支持多模型。
ai-chat.yml的models可定义多个具名模型,各自独立接口与密钥,active-model指定默认;OP 可用/fp aichat model <名称>运行时切换并保存。旧配置仍按单个default模型工作。 - AI 聊天可选择性读取背包上下文。
ai-chat.yml的inventory-context.fakeplayer/inventory-context.questioner与玩家开关aichat_fake_inventory/aichat_questioner_inventory(/fp config set)同时开启时,背包物品种类与数量进入提示词。默认全部关闭,config.yml版本为 41。 -a支持所有名称类命令(#123、#202)。 OP/控制台作用于全服,普通玩家仅限自己召唤的;select、spawn/spawnuuid、rename除外,kick/kill保持原有批量行为。- 新增
name-suffix(#144)。 自定义与自动生成的名字都可以带后缀;自动生成时序号放在后缀之前(Bot_1_bot)。config.yml版本为 40。 - 可选依赖不再打包进 jar。 开启 HTTP 接口或 MySQL 时,Undertow 与 MySQL 驱动按需下载到
plugins/FakePlayer-CE/libs。可用-DLeaf.library-download-repo=<url>指定镜像源(默认 Maven 中央仓库);仅接受http(s)地址,下载路径限制在libs内。
破坏性变更
- 行为上没有。
/fp spawnuuid弃用但仍可用,推荐改用/fp spawnjson。config.yml因三个新选项提升到版本 42,现有配置继续工作,可用/fp update config补齐。
关键修复
/fp spawn世界名与权限报错修复(感谢 @boxendo,eb443564)。 世界参数按 Bukkit 世界名解析(兼容维度 key);缺少spawn.name/spawn.location权限时给出明确提示。/fp selection权限与只给世界时的召唤修复(感谢 @boxendo,c436b5cf)。/fp spawn <名> <世界>现在尊重世界参数,-可跳过名字参数。- 1.21.x 上假人不再被重复移除(感谢 @NotCbop / Cbop,共同作者 Claude Fable 5,
6aaf570)。 1.21.11 上Player.kick()已走完断线流程,随后的PlayerList.remove会二次触发PlayerQuitEvent并留下/fp kick删不掉的幽灵假人。现在仅在 kick 后仍在线时才做兜底移除。
注意
- 首次开启 HTTP 接口或 MySQL 会在启动时下载依赖。若服务器无法访问 Maven Central,请在启动前设置
-DLeaf.library-download-repo=<url>。 - AI 背包上下文默认关闭,且需要全局开关与玩家个人开关同时打开。
/fp version显示的是产出该 jar 的 CI commit(本包为5a391559),GitHub tag 指向的是更新日志提交,两者只差一个纯文档提交。
使用
- Java:25+(必需)
- 服务端:Paper / Leaf / Purpur 1.20.1+(支持 Folia)
- API:CommandAPI 12.0.0+(Minecraft 26.3 需要 12.1.0+)
- 可选:SkinsRestorer、AuthMe / CatSeedLogin / LibreLogin、PlaceholderAPI
致谢
- CE 维护:@EndlessPixel
- @boxendo(
eb443564、c436b5cf:spawn 世界名、权限报错、selection 权限与只给世界的召唤) - @realmyron(#123)、@zaqnti(#202:所有名称类命令支持
-a) - @kuxiaole(#187)、@Chaostarts(#64:按权限设置假人上限)
- @god-what-is-that(#144)与 @fuzhulike(
name-suffix实现) - @NotCbop / Cbop 与 Claude Fable 5(
6aaf570:1.21.x 重复移除修复)