Nova-Committee / McBot

A mod allowed you to connect minecraft and QQ
Other
131 stars 17 forks source link

[Bug/漏洞] 1.21fabric mcbot 2.2.1.2 模组未加载 #155

Closed Nelocompne closed 1 month ago

Nelocompne commented 1 month ago

Checks / 检查

Java Version / Java版本

jdk-21.0.3.9

Minecraft Version / Minecraft版本

1.21

McBot Version / McBot版本

2.2.1.2

Description / 描述

mcbot 2.2.1.2最新版是在curseforge上获取的。 我这边1.21的fabric中模组未能成功加载。fabric 0.16.0 和 0.15.11都未能成功加载。

To Reproduce / 重现

标准方式启动,命令未生效

/mcbot
[00:46:28] [Server thread/INFO] (MinecraftServer) Unknown or incomplete command, see below for error
[00:46:28] [Server thread/INFO] (MinecraftServer) mcbot<--[HERE]

Log / 日志

$ ./start.sh
Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
[00:46:08] [main/INFO]: Loading Minecraft 1.21 with Fabric Loader 0.16.0
[00:46:08] [ForkJoinPool-1-worker-11/WARN]: Mod com_github_shevek_parallelgzip uses the version af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6 which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version
[00:46:09] [main/WARN]: Warnings were found!
 - 妯$粍 'Textile Backup' (textile_backup) 3.1.3-1.21 寤鸿瀹夎 modmenu 鐨?浠绘剰鐗堟湰锛屼絾娌℃湁瀹夎瀹冿紒
         - 涓轰簡鏈€浣充綋楠岋紝鎮ㄥ簲璇ュ畨瑁?modmenu 鐨?浠绘剰鐗堟湰銆?
€?

[00:46:09] [main/INFO]: Loading 85 mods:
        - appleskin 3.0.2+mc1.21
        - architectury 13.0.4
        - cloth-config 15.0.127
           \-- cloth-basic-math 0.6.1
        - essential_commands 0.35.2-mc1.21
           |-- ec-core 1.3.0-mc1.21
           |    |-- fabric-permissions-api-v0 0.3.1
           |    |-- org_yaml_snakeyaml 2.0
           |    |-- placeholder-api 2.4.0-pre.2+1.21
           |    \-- playerabilitylib 1.10.0
           |-- fabric-permissions-api-v0 0.3.1
           |-- org_yaml_snakeyaml 2.0
           |-- placeholder-api 2.4.0-pre.2+1.21
           \-- playerabilitylib 1.10.0
        - fabric-api 0.100.7+1.21
           |-- fabric-api-base 0.4.42+6573ed8cd1
           |-- fabric-api-lookup-api-v1 1.6.67+b5597344d1
           |-- fabric-biome-api-v1 13.0.29+5bd9f1bcd1
           |-- fabric-block-api-v1 1.0.22+0af3f5a7d1
           |-- fabric-block-view-api-v2 1.0.10+6573ed8cd1
           |-- fabric-blockrenderlayer-v1 1.1.52+0af3f5a7d1
           |-- fabric-client-tags-api-v1 1.1.15+6573ed8cd1
           |-- fabric-command-api-v1 1.2.49+f71b366fd1
           |-- fabric-command-api-v2 2.2.28+6ced4dd9d1
           |-- fabric-commands-v0 0.2.66+df3654b3d1
           |-- fabric-content-registries-v0 8.0.15+b5597344d1
           |-- fabric-convention-tags-v1 2.0.18+7f945d5bd1
           |-- fabric-convention-tags-v2 2.4.2+c111832ad1
           |-- fabric-crash-report-info-v1 0.2.29+0af3f5a7d1
           |-- fabric-data-attachment-api-v1 1.1.25+6a6dfa19d1
           |-- fabric-data-generation-api-v1 20.2.12+16c4ae25d1
           |-- fabric-dimensions-v1 4.0.0+6fc22b99d1
           |-- fabric-entity-events-v1 1.6.12+6fc22b99d1
           |-- fabric-events-interaction-v0 0.7.10+e633f883d1
           |-- fabric-game-rule-api-v1 1.0.53+6ced4dd9d1
           |-- fabric-item-api-v1 11.0.0+afdfc921d1
           |-- fabric-item-group-api-v1 4.1.3+78017270d1
           |-- fabric-key-binding-api-v1 1.0.47+0af3f5a7d1
           |-- fabric-keybindings-v0 0.2.45+df3654b3d1
           |-- fabric-lifecycle-events-v1 2.3.11+8f3583aed1
           |-- fabric-loot-api-v2 3.0.13+3f89f5a5d1
           |-- fabric-loot-api-v3 1.0.1+3f89f5a5d1
           |-- fabric-message-api-v1 6.0.13+6573ed8cd1
           |-- fabric-model-loading-api-v1 2.0.0+fe474d6bd1
           |-- fabric-networking-api-v1 4.2.0+ab7edbacd1
           |-- fabric-object-builder-api-v1 15.1.13+d1321076d1
           |-- fabric-particles-v1 4.0.2+6573ed8cd1
           |-- fabric-recipe-api-v1 5.0.10+65089712d1
           |-- fabric-registry-sync-v0 5.0.25+5bd9f1bcd1
           |-- fabric-renderer-api-v1 3.3.0+0ae0b97dd1
           |-- fabric-renderer-indigo 1.6.5+48fb1586d1
           |-- fabric-renderer-registries-v1 3.2.68+df3654b3d1
           |-- fabric-rendering-data-attachment-v1 0.3.48+73761d2ed1
           |-- fabric-rendering-fluids-v1 3.1.6+b5597344d1
           |-- fabric-rendering-v0 1.1.71+df3654b3d1
           |-- fabric-rendering-v1 5.0.5+df16efd0d1
           |-- fabric-resource-conditions-api-v1 4.2.1+d153f344d1
           |-- fabric-resource-loader-v0 1.2.0+7e687b32d1
           |-- fabric-screen-api-v1 2.0.24+b5597344d1
           |-- fabric-screen-handler-api-v1 1.3.82+b5597344d1
           |-- fabric-sound-api-v1 1.0.23+6573ed8cd1
           |-- fabric-transfer-api-v1 5.1.15+3dccd343d1
           \-- fabric-transitive-access-wideners-v1 6.0.12+6573ed8cd1
        - fabric-language-kotlin 1.11.0+kotlin.2.0.0
           |-- org_jetbrains_kotlin_kotlin-reflect 2.0.0
           |-- org_jetbrains_kotlin_kotlin-stdlib 2.0.0
           |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 2.0.0
           |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 2.0.0
           |-- org_jetbrains_kotlinx_atomicfu-jvm 0.24.0
           |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.8.1
           |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.8.1
           |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.6.0
           |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.6.3
           |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.6.3
           \-- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.6.3
        - fabricloader 0.16.0
           \-- mixinextras 0.4.0
        - factions 2.6.3
        - ftblibrary 2100.1.2
        - ftbultimine 2100.1.0
        - invview 1.4.15-1.20.5+
           \-- sgui 1.5.0+1.20.5
        - jade 15.1.4+fabric
        - java 21
        - jline4mcdsrv 0.6.2
           |-- com_moandjiezana_toml_toml4j 0.7.2
           |-- org_jline_jline 3.26.2
           \-- org_jline_jline-terminal-jansi 3.26.2
        - ledger 1.3.4
           |-- fabric-permissions-api-v0 0.3.1
           \-- server_translations_api 2.3.1+1.21-pre2
                \-- packet_tweaker 0.5.1+24w03b
        - lithium 0.12.7
        - luckperms 5.4.133
           \-- fabric-permissions-api-v0 0.3.1
        - mcbot 2.2.1.2
        - minecraft 1.21
        - spark 1.10.73
           \-- fabric-permissions-api-v0 0.3.1
        - textile_backup 3.1.3-1.21
           |-- com_github_shevek_parallelgzip af5f5c297e735f3f2df7aa4eb0e19a5810b8aff6
           |-- org_apache_commons_commons-compress 1.26.1
           \-- org_tukaani_xz 1.9
        - vanilla-permissions 0.2.3+1.21
           \-- fabric-permissions-api-v0 0.3.1
[00:46:09] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/D:/1.21_server/libraries/net/fabricmc/sponge-mixin/0.15.0+mixin.0.8.7/sponge-mixin-0.15.0+mixin.0.8.7.jar Service=Knot/Fabric Env=SERVER
[00:46:09] [main/INFO]: Compatibility level set to JAVA_21
[00:46:09] [main/INFO]: Loaded configuration file for Lithium: 138 options available, 0 override(s) found
[00:46:10] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.0).
[00:46:17] [main/INFO]: Detected Java version 21. Enabling Java 16 features.
[00:46:17] [main/INFO]: [EssentialCommands]: Mod Load Initiated.
[00:46:17] [main/INFO]: [EssentialCommands]: Mod Load Complete.
[00:46:17] [main/INFO]: Initialized Factions Mod for Minecraft v1.20.1
[00:46:17] [main/INFO]: Registering C2S receiver with id ftblibrary:edit_nbt_response
[00:46:17] [main/INFO]: Registering C2S receiver with id ftbultimine:key_pressed_packet
[00:46:17] [main/INFO]: Registering C2S receiver with id ftbultimine:mode_changed_packet
[00:46:17] [main/INFO]: Registering C2S receiver with id ftbultimine:sync_config_to_server_packet
[00:46:17] [main/INFO]: [Textile Backup] Starting Textile Backup 3.1.3-1.21:1.21 by Szum123321
[00:46:17] [main/INFO]: Initializing Ledger 1.3.4
[00:46:19] [ForkJoinPool.commonPool-worker-1/INFO]: Essential Commands is up to date!
[00:46:19] [main/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[00:46:20] [Worker-Main-3/INFO]: Loaded Fabric Permissions
[00:46:21] [main/INFO]: Loaded 1290 recipes
[00:46:21] [main/INFO]: Loaded 1399 advancements
[00:46:21] [ForkJoinPool.commonPool-worker-1/INFO]: Loaded 52 translation keys
[00:46:21] [main/INFO]: Applied 0 biome modifications to 0 of 64 new biomes in 1.587 ms
[00:46:22] [Server thread/INFO]: Starting background profiler...
[00:46:22] [Server thread/INFO]: The async-profiler engine is not supported for your os/arch (windows11/amd64), so the built-in Java engine will be used instead.
[00:46:22] [Server thread/INFO]: Preparing create tables statements took 14ms
[00:46:22] [Server thread/INFO]: Executing create tables statements took 12ms
[00:46:22] [Server thread/INFO]: Extracting table columns took 5ms
[00:46:22] [Server thread/INFO]: Extracting primary keys took 79ms
[00:46:22] [Server thread/INFO]: Preparing alter table statements took 87ms
[00:46:22] [Server thread/INFO]: Executing alter table statements took 0ms
[00:46:22] [Server thread/INFO]: Index on table 'players' differs only in name: in db players_player_id -> in mapping players_player_id_unique
[00:46:22] [Server thread/INFO]: Index on table 'ActionIdentifiers' differs only in name: in db ActionIdentifiers_action_identifier -> in mapping ActionIdentifiers_action_identifier_unique
[00:46:22] [Server thread/INFO]: Index on table 'ObjectIdentifiers' differs only in name: in db ObjectIdentifiers_identifier -> in mapping ObjectIdentifiers_identifier_unique
[00:46:22] [Server thread/INFO]: Index on table 'sources' differs only in name: in db sources_name -> in mapping sources_name_unique
[00:46:22] [Server thread/INFO]: Index on table 'worlds' differs only in name: in db worlds_identifier -> in mapping worlds_identifier_unique
[00:46:22] [Server thread/INFO]: Checking mapping consistence took 99ms
[00:46:22] [Server thread/INFO]: Tables created
[00:46:22] [DefaultDispatcher-worker-7/INFO]: Inserting 1582 registry keys into the database...
[00:46:22] [Server thread/INFO]:         __
[00:46:22] [Server thread/INFO]:   |    |__)   LuckPerms v5.4.133
[00:46:22] [Server thread/INFO]:   |___ |      Running on Fabric - fabric@0.100.7+1.21
[00:46:22] [Server thread/INFO]:
[00:46:22] [Server thread/INFO]: Loading configuration...
[00:46:22] [Server thread/INFO]: Loading storage provider... [H2]
[00:46:23] [Server thread/INFO]: Loading internal permission managers...
[00:46:23] [Server thread/INFO]: Performing initial data load...
[00:46:23] [Server thread/INFO]: Successfully enabled. (took 619ms)
[00:46:23] [Server thread/INFO]: Starting minecraft server version 1.21
[00:46:23] [Server console handler/INFO]: Starting jline4mcdsrv
[00:46:23] [Server thread/INFO]: Loading properties
[00:46:23] [Server thread/INFO]: Default game type: SURVIVAL
[00:46:23] [Server thread/INFO]: Generating keypair
[00:46:23] [Server thread/INFO]: Starting Minecraft server on *:25565
[00:46:23] [Server thread/INFO]: Using default channel type
[00:46:23] [Server thread/INFO] (class_3176) Preparing level "world"
[00:46:24] [Server thread/INFO] (MinecraftServer) Preparing start region for dimension minecraft:overworld
[00:46:24] [Worker-Main-7/INFO] (class_3951) Preparing spawn area: 0%
[00:46:24] [DefaultDispatcher-worker-8/INFO] (Ledger) Registry insert complete
[00:46:24] [Server thread/INFO] (class_3951) Time elapsed: 442 ms
[00:46:24] [Server thread/INFO] (class_3176) Done (1.263s)! For help, type "help"
[00:46:24] [Server thread/INFO] (Jade) Start loading plugin from Jade: snownee.jade.addon.core.CorePlugin
[00:46:24] [Server thread/INFO] (Jade) Start loading plugin from Jade: snownee.jade.addon.vanilla.VanillaPlugin
[00:46:24] [Server thread/INFO] (Jade) Start loading plugin from Jade: snownee.jade.addon.universal.UniversalPlugin
[00:46:24] [Server thread/INFO] (Jade) Start loading plugin from Jade: snownee.jade.addon.debug.DebugPlugin
[00:46:24] [Server thread/INFO] (EssentialCommands) Possible world ids: minecraft:overworld,minecraft:the_end,minecraft:the_nether
[00:46:24] [Server thread/INFO] (EssentialCommands) Configured `rtp_enabled_worlds` world ids: minecraft:overworld
[00:46:24] [Server thread/INFO] (EssentialCommands) All configured `rtp_enabled_worlds` world ids are valid.
/mcbot
[00:46:28] [Server thread/INFO] (MinecraftServer) Unknown or incomplete command, see below for error
[00:46:28] [Server thread/INFO] (MinecraftServer) mcbot<--[HERE]

Config / 配置

AmamiyaAkina commented 1 month ago

我将该版本2.2.1.2直接移植到1.20.1的服务端上,可以直接读取并运行,甚至自动连接了我正在运行的Onebot机器人,而在1.21版本的终端中并没有出现以下三行:

[11:07:02] [Thread-3/INFO]: [STDOUT]: [Config] ./mcbot/config.toml Reload!
[11:07:02] [Server thread/INFO]: 加载 3 个自定义命令,耗时 30 毫秒
[11:07:02] [WebSocketConnectReadThread-74/INFO]: ▌ §c已连接到服务器 §a┈━═☆
cnlimiter commented 1 month ago

已修复