dmulloy2 / ProtocolLib

Provides read and write access to the Minecraft protocol with Bukkit.
GNU General Public License v2.0
1.03k stars 258 forks source link

DEV Build #723 error on Minecraft Spigot 1.21 - [ProtocolLib] Unable to retrieve current Minecraft version. - FIXED #3072

Open Nitrowut opened 3 months ago

Nitrowut commented 3 months ago
Server is running CraftBukkit version 4248-Spigot-491f367-ae4f5a0 (MC: 1.21) (Implementing API version 1.21-R0.1-SNAPSHOT)
(Version get from BuildTool)

[12:52:12] [Server thread/WARN]: [ProtocolLib] [ProtocolLib] Unable to retrieve current Minecraft version. Assuming (MC: 1.20.4)
java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.String (java.lang.Boolean and java.lang.String are in module java.base of loader 'bootstrap')
        at com.comphenix.protocol.ProtocolConfig.getIgnoreVersionCheck(ProtocolConfig.java:297) ~[?:?]
        at com.comphenix.protocol.ProtocolLib.verifyMinecraftVersion(ProtocolLib.java:376) ~[?:?]
        at com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:168) ~[?:?]
        at org.bukkit.craftbukkit.v1_21_R1.CraftServer.loadPlugins(CraftServer.java:461) ~[spigot-1.21-R0.1-SNAPSHOT.jar:4248-Spigot-491f367-ae4f5a0]
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:236) ~[spigot-1.21-R0.1-SNAPSHOT.jar:4248-Spigot-491f367-ae4f5a0]
        at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1017) ~[spigot-1.21-R0.1-SNAPSHOT.jar:4248-Spigot-491f367-ae4f5a0]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[spigot-1.21-R0.1-SNAPSHOT.jar:4248-Spigot-491f367-ae4f5a0]

Screenshot 2024-07-01 125518

Dump File: dump-2024-07-02_16.54.28.txt

derklaro commented 3 months ago

The ignore version check setting in the config file is not a boolean, but a list of strings (the minecraft version you want to ignore the check on).

Nitrowut commented 3 months ago

The ignore version check setting in the config file is not a boolean, but a list of strings (the minecraft version you want to ignore the check on).

I set the ignore version check to 1.20.4 and I got this (In screenshot) I think it's fine now. Thanks

image

image