Nova-Committee / McBot

A mod allowed you to connect minecraft and QQ
Other
115 stars 15 forks source link

[Bug/漏洞] 1.20.4玩家加入游戏提示无效的玩家数据 #143

Closed abwuge closed 4 months ago

abwuge commented 4 months ago

Checks / 检查

Java Version / Java版本

21.0.1 (Alibaba Dragonwell Standard Edition)

Minecraft Version / Minecraft版本

1.20.4

McBot Version / McBot版本

2.1.9.2

Description / 描述

mods添加fabric-api和mcbot,玩家加入游戏提示无效的玩家数据,详见log。

To Reproduce / 重现

如描述。

Log / 日志

[11:01:59] [main/INFO]: Loading Minecraft 1.20.4 with Fabric Loader 0.15.6
[11:01:59] [main/INFO]: Loading 46 mods:
    - fabric-api 0.96.4+1.20.4
       |-- fabric-api-base 0.4.36+78d798af4f
       |-- fabric-api-lookup-api-v1 1.6.49+82b1bb3e4f
       |-- fabric-biome-api-v1 13.0.16+78d798af4f
       |-- fabric-block-api-v1 1.0.16+3e2216cb4f
       |-- fabric-block-view-api-v2 1.0.4+78d798af4f
       |-- fabric-blockrenderlayer-v1 1.1.46+78d798af4f
       |-- fabric-client-tags-api-v1 1.1.7+78d798af4f
       |-- fabric-command-api-v1 1.2.41+f71b366f4f
       |-- fabric-command-api-v2 2.2.20+78d798af4f
       |-- fabric-commands-v0 0.2.58+df3654b34f
       |-- fabric-containers-v0 0.1.86+df3654b34f
       |-- fabric-content-registries-v0 5.0.14+78d798af4f
       |-- fabric-convention-tags-v1 1.5.10+78d798af4f
       |-- fabric-crash-report-info-v1 0.2.23+78d798af4f
       |-- fabric-data-attachment-api-v1 1.1.3+b90db5744f
       |-- fabric-data-generation-api-v1 13.2.3+5c0133444f
       |-- fabric-dimensions-v1 2.1.61+78d798af4f
       |-- fabric-entity-events-v1 1.6.1+09fc25014f
       |-- fabric-events-interaction-v0 0.7.1+389931eb4f
       |-- fabric-events-lifecycle-v0 0.2.74+df3654b34f
       |-- fabric-game-rule-api-v1 1.0.46+78d798af4f
       |-- fabric-item-api-v1 2.2.0+d6f2b0844f
       |-- fabric-item-group-api-v1 4.0.25+58f8c0124f
       |-- fabric-key-binding-api-v1 1.0.41+78d798af4f
       |-- fabric-keybindings-v0 0.2.39+df3654b34f
       |-- fabric-lifecycle-events-v1 2.3.0+a67ffb5d4f
       |-- fabric-loot-api-v2 2.1.8+78d798af4f
       |-- fabric-message-api-v1 6.0.5+78d798af4f
       |-- fabric-mining-level-api-v1 2.1.64+78d798af4f
       |-- fabric-model-loading-api-v1 1.0.8+78d798af4f
       |-- fabric-models-v0 0.4.7+9386d8a74f
       |-- fabric-networking-api-v1 3.1.7+2e5ac5484f
       |-- fabric-object-builder-api-v1 13.0.13+080016e44f
       |-- fabric-particles-v1 1.1.7+78d798af4f
       |-- fabric-recipe-api-v1 2.0.20+78d798af4f
       |-- fabric-registry-sync-v0 4.0.19+58f8c0124f
       |-- fabric-renderer-api-v1 3.2.4+78d798af4f
       |-- fabric-renderer-indigo 1.5.4+78d798af4f
       |-- fabric-renderer-registries-v1 3.2.53+df3654b34f
       |-- fabric-rendering-data-attachment-v1 0.3.42+73761d2e4f
       |-- fabric-rendering-fluids-v1 3.1.1+e761c6694f
       |-- fabric-rendering-v0 1.1.56+df3654b34f
       |-- fabric-rendering-v1 3.2.0+6fd945a04f
       |-- fabric-resource-conditions-api-v1 2.3.14+78d798af4f
       |-- fabric-resource-loader-v0 0.11.19+58f8c0124f
       |-- fabric-screen-api-v1 2.0.17+78d798af4f
       |-- fabric-screen-handler-api-v1 1.3.55+78d798af4f
       |-- fabric-sound-api-v1 1.0.17+78d798af4f
       |-- fabric-transfer-api-v1 4.0.11+e84342304f
       \-- fabric-transitive-access-wideners-v1 5.0.14+78d798af4f
    - fabricloader 0.15.6
       \-- mixinextras 0.3.2
    - java 21
    - mcbot 2.1.9.2
       \-- mcbot_1_20_4 2.1.9.2
            |-- cn_evole_bot_onebot-client 0.3.9.1
            \-- cn_evole_config_atomconfig-toml 0.1.5
    - minecraft 1.20.4
[11:01:59] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/home/whx/Minecraft/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
[11:02:00] [main/INFO]: Compatibility level set to JAVA_17
[11:02:01] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.2).
[11:02:21] [main/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[11:02:22] [main/INFO]: Found new data pack fabric, loading it automatically
[11:02:22] [main/INFO]: Found new data pack fabric-convention-tags-v1, loading it automatically
[11:02:26] [main/INFO]: Loaded 7 recipes
[11:02:27] [main/INFO]: Loaded 1271 advancements
[11:02:28] [main/INFO]: Applied 0 biome modifications to 0 of 64 new biomes in 3.322 ms
[11:02:28] [Server thread/INFO]: Starting minecraft server version 1.20.4
[11:02:28] [Server thread/INFO]: Loading properties
[11:02:28] [Server thread/INFO]: Default game type: SURVIVAL
[11:02:28] [Server thread/INFO]: Generating keypair
[11:02:28] [Server thread/INFO]: Starting Minecraft server on *:25565
[11:02:28] [Server thread/INFO]: Using epoll channel type
[11:02:29] [Server thread/INFO]: Preparing level "SurvivalForever"
[11:02:35] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:46] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[11:02:47] [Worker-Main-1/INFO]: Preparing spawn area: 0%
[11:02:47] [Worker-Main-2/INFO]: Preparing spawn area: 12%
[11:02:48] [Worker-Main-2/INFO]: Preparing spawn area: 33%
[11:02:48] [Worker-Main-2/INFO]: Preparing spawn area: 54%
[11:02:49] [Worker-Main-3/INFO]: Preparing spawn area: 92%
[11:02:49] [Server thread/INFO]: Time elapsed: 14323 ms
[11:02:49] [Server thread/INFO]: Done (20.626s)! For help, type "help"
[11:02:49] [BotServer/ERROR]: Uncaught exception in thread "BotServer"
java.lang.NullPointerException: Cannot invoke "cn.evole.onebot.client.connection.WSClient.createBot()" because "cn.evole.mods.mcbot.McBot.service.ws" is null
    at cn.evole.mods.mcbot.McBot.lambda$onServerStarted$1(McBot.java:106) ~[mcbot_1_20_4-2.1.9.2-6b440f55f6cb648c.jar:?]
    at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[11:02:49] [WebSocketConnectReadThread-61/ERROR]: ▌ §c出现错误Connection refused或未连接§a┈━═☆
[11:02:49] [Server thread/INFO]: 加载 3 个自定义命令,耗时 61 毫秒
[11:02:49] [WebSocketConnectReadThread-61/INFO]: ▌ §c服务器因Connection refused已关闭
[11:03:10] [User Authenticator #1/INFO]: UUID of player abwuge is 882a72aa-9214-47ca-a0dc-1fa5ce2807ef
[11:03:11] [Server thread/ERROR]: Couldn't place player in world
java.lang.RuntimeException: Mixin transformation of net.minecraft.class_2985 failed
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427) ~[fabric-loader-0.15.6.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323) ~[fabric-loader-0.15.6.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218) ~[fabric-loader-0.15.6.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119) ~[fabric-loader-0.15.6.jar:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
    at net.minecraft.class_3324.method_14578(class_3324.java:869) ~[server-intermediary.jar:?]
    at net.minecraft.class_3222.<init>(class_3222.java:280) ~[server-intermediary.jar:?]
    at net.minecraft.class_3324.method_14613(class_3324.java:439) ~[server-intermediary.jar:?]
    at net.minecraft.class_8610.method_52408(class_8610.java:126) ~[server-intermediary.jar:?]
    at net.minecraft.class_8736.method_53043(class_8736.java:20) ~[server-intermediary.jar:?]
    at net.minecraft.class_8736.method_11054(class_8736.java:7) ~[server-intermediary.jar:?]
    at net.minecraft.class_2600.method_11072(class_2600.java:24) ~[server-intermediary.jar:?]
    at net.minecraft.class_3738.run(class_3738.java:18) ~[server-intermediary.jar:?]
    at net.minecraft.class_1255.method_18859(class_1255.java:156) ~[server-intermediary.jar:?]
    at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:797) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:165) ~[server-intermediary.jar:?]
    at net.minecraft.class_1255.method_16075(class_1255.java:130) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:779) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:773) ~[server-intermediary.jar:?]
    at net.minecraft.class_1255.method_18857(class_1255.java:139) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:758) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:687) ~[server-intermediary.jar:?]
    at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:270) ~[server-intermediary.jar:?]
    at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ~[fabric-loader-0.15.6.jar:?]
    ... 24 more
Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Callback method PlayerAdvancements_award(Lnet/minecraft/class_161;Ljava/lang/String;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V in mcbot.mixins.json:MixinPlayerAdvancements from mod mcbot_1_20_4 failed injection check, (0/1) succeeded. Scanned 1 target(s). No refMap loaded.
    at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1384) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1062) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:402) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202) ~[sponge-mixin-0.12.5+mixin.0.8.5.jar:0.12.5+mixin.0.8.5]
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422) ~[fabric-loader-0.15.6.jar:?]
    ... 24 more
[11:03:11] [Server thread/INFO]: com.mojang.authlib.GameProfile@6baed153[id=882a72aa-9214-47ca-a0dc-1fa5ce2807ef,name=abwuge,properties={textures=[Property[name=textures, value=ewogICJ0aW1lc3RhbXAiIDogMTcwOTM0ODU5MDA3MSwKICAicHJvZmlsZUlkIiA6ICI4ODJhNzJhYTkyMTQ0N2NhYTBkYzFmYTVjZTI4MDdlZiIsCiAgInByb2ZpbGVOYW1lIiA6ICJhYnd1Z2UiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2EzOWFkZjAzZDQ4OWVhZTU1YzhiNWI1ODdkOTJkMjc1Y2Q4NjIyYTQyZThkZjFkNmNlM2YxZWQ1ZmExMDY0NSIKICAgIH0sCiAgICAiQ0FQRSIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjM0MGMwZTAzZGQyNGExMWIxNWE4YjMzYzJhN2U5ZTMyYWJiMjA1MWIyNDgxZDBiYTdkZWZkNjM1Y2E3YTkzMyIKICAgIH0KICB9Cn0=, signature=PSzSFJb78KLZxQ502R9LvsZvrU0mR0jhGp+T4ChSKljPIjbAGHsTT4xHxzwIFD32r7+UBzJagOWWsQHtJDYiwJ53p7z9t289Kw/VEJyVgTjhHO3xePXJmCFNOpIhCJYYZ7lUdsEAqXYI+fLEoNTN6UdgJHKCjcRK/K8ww33WtlJL3ZbLg+3nMoYNEATo4MaWmJ2PxUGnSzMbfa683grkJ8gkWUptGnhSxddqIDsO/GHYrixbHSGL6rQGVOC1nfZnyzBdBb3aiK8k7F14sWoUsmS5vdAjK4MtKuXC5SgXR8CqvFLTg5swrqoOLzLFCXsGo081SYOkYC9tdOUIYiSIdsl76bbCVYdmHhT+Gcuf/LKIxhuS5EHqPpUu+COtS1XEuU32ZRxNyBu0YeTvqYYDqU/sBemX0O/p3hnTnugqgKmAXmSWPHD3m3LkTodfgJPGM9cuj+xvIRjsD+CbJ3AX1EHNY6Pl1jHJmWSNpvR1A86o3p8WCQxrRClLzuVWFw3s3KDhUi5+0LaUKkkiMt1mcLiBRY44uXzi+esqQuYJQ8rmSA9FRQZI3/B9rUzWyDC+CLxUEZunwPQQcclCwd30gQu7c7shiNNALxrzcYh5AVPDsy/fZ38eusOLJ8I8IPl/RZUA0V0R5bM/7jaEohcC+bp9AqXvIL20i/rfz7RaUIw=]]}] lost connection: Invalid player data
[11:03:18] [Server thread/INFO]: Stopping the server
[11:03:18] [Server thread/INFO]: ▌ §c正在关闭群服互联 §a┈━═☆
[11:03:18] [Server thread/INFO]: Stopping server
[11:03:18] [pool-4-thread-1/ERROR]: null
[11:03:18] [Server thread/INFO]: Saving players
[11:03:18] [Server thread/INFO]: Saving worlds
[11:03:18] [Server thread/INFO]: Saving chunks for level 'ServerLevel[SurvivalForever]'/minecraft:overworld
[11:03:18] [Server thread/INFO]: Saving chunks for level 'ServerLevel[SurvivalForever]'/minecraft:the_nether
[11:03:18] [Server thread/INFO]: Saving chunks for level 'ServerLevel[SurvivalForever]'/minecraft:the_end
[11:03:18] [Server thread/INFO]: ThreadedAnvilChunkStorage (SurvivalForever): All chunks are saved
[11:03:18] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[11:03:18] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[11:03:18] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved

Config / 配置

{
    // 通用
    "common": {
        // 开启q群功能
        "group_on": true,
        // 支持多个q群
        "group_id_list": [],
        // 是否开启频道
        "guild_on": false,
        // 频道id
        "guild_id": "",
        // 子频道列表
        "channel_id_list": [],
        // 机器人qq
        "bot_id": 0,
        // 主人qq
        "master_id": 0,
        // 是否启用
        "enable": true,
        // 是否开发模式,将显示事件信息操作
        "debuggable": false,
        // 白名单,无用
        "whitelist_enable": false,
        // 选择语言系统
        "language_select": "zh_cn",
        // 自动连接
        "auto_open": true,
        // 是否开启聊天栏图片功能
        "image_on": true
    },
    // 状态
    "status": {
        // 全局接收
        "RECEIVE_ENABLED": true,
        // 命令接收
        "R_COMMAND_ENABLED": true,
        // 消息接收
        "R_CHAT_ENABLE": true,
        // 发送消息
        "SEND_ENABLED": true,
        // 发送欢迎玩家入群消息
        "S_QQ_WELCOME_ENABLE": true,
        // 发送玩家退群消息
        "S_QQ_LEAVE_ENABLE": true,
        // 发送加入服务器消息
        "S_JOIN_ENABLE": true,
        // 发送离开服务器消息
        "S_LEAVE_ENABLE": true,
        // 发送玩家死亡消息
        "S_DEATH_ENABLE": true,
        // 发送服务器聊天
        "S_CHAT_ENABLE": true,
        // 发送成就消息
        "S_ADVANCE_ENABLE": true
    },
    // 命令
    "cmd": {
        // 自定义q群加入事件消息
        "welcome_notice": "\u6b22\u8fce\u52a0\u7fa4~",
        // 自定义q群离开消息
        "leave_notice": "\u79bb\u5f00\u4e86\u6211\u4eecqwq",
        // q群中使用命令的关键符号
        "command_start": "!",
        // 暂时没用
        "bind_command": "bind",
        // 暂时没用
        "whitelist_command": "white",
        // 暂时没用
        "bind_success": "\u7ed1\u5b9a\u6210\u529f \u2508\u2501\u2550\u2606\n\u6210\u529f\u7ed1\u5b9a\u8d26\u53f7: %Player%\n\u4f60\u4ed6\u5988\u7ed1\u5b9a\u6210\u529f\u4e86\u5462~\"",
        // 暂时没用
        "bindFail": "\u7ed1\u5b9a\u5931\u8d25 \u2508\u2501\u2550\u2606\n\u4f60\u7684QQ\u5df2\u7ecf\u7ed1\u5b9a\u6216 %Player% \u5df2\u88ab\u7ed1\u5b9a\n\u4f60\u4ed6\u5988\u4e0d\u80fd\u518d\u7ed1\u5b9a\u4e86\u5462~",
        // 暂时没用
        "bindNotOnline": "\u73a9\u5bb6\u4e0d\u5728\u7ebf \u2508\u2501\u2550\u2606\n%Player% \u4e0d\u5728\u7ebf\u6216\u8005\u4e0d\u5b58\u5728\u54e6\n\u8fd8\u4ed6\u5988\u4e0d\u4e0a\u7ebf\u6401\u8fd9\u73a9QQ\u5462~",
        /* ####################
           是否开启显示到游戏中的前缀
        */
        "gamePrefixOn": true,
        // 是否开启显示到游戏中的id前缀
        "idGamePrefixOn": true,
        // 来自q群显示到游戏中的前缀
        "qqGamePrefix": "\u7fa4\u804a",
        // 来自频道显示到游戏中的前缀
        "guildGamePrefix": "\u9891\u9053",
        // 是否开启显示到游戏中的昵称为群昵称
        "groupNickOn": false,
        /* ####################
           是否开启来自游戏的消息显示到群中的前缀
        */
        "mcPrefixOn": true,
        // 来自游戏的消息显示到群中的前缀
        "mcPrefix": "MC",
        /* ####################
           是否开启游戏中自定义关键词
        */
        "mcChatPrefixOn": false,
        // 是否开启qq中自定义关键词
        "qqChatPrefixOn": false,
        // 游戏中自定义的消息头文本
        "mcChatPrefix": "q",
        // qq中自定义的消息头文本
        "qqChatPrefix": "m",
        /* ####################
           是否开启游戏中机器人执行命令发送的消息前缀
        */
        "mcSystemPrefixOn": true,
        // 游戏中机器人执行命令发送的消息前缀
        "mcSystemPrefix": "SERVER"
    },
    // 机器人
    "bot_config": {
        "url": "ws://127.0.0.1:8080",
        "token": "",
        "botId": 0,
        "isAccessToken": false,
        "miraiHttp": false,
        "reconnect": true,
        "maxReconnectAttempts": 20
    }
}
cnlimiter commented 4 months ago

试试最新构建的