ProtocolLib icon indicating copy to clipboard operation
ProtocolLib copied to clipboard

Error on enable

Open GustyCube opened this issue 1 year ago • 1 comments

  • [Yes ] This issue is not solved in a development build

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Start the server

Expected behavior ProtocolLib should work

Screenshots [03:07:07] [Server thread/ERROR]: [ProtocolLib] INTERNAL ERROR: Cannot load ProtocolLib. If this problem hasn't already been reported, please open a ticket at https://github.com/dmulloy2/ProtocolLib/issues with the following data: Stack Trace: java.lang.IllegalArgumentException: Unable to find a field that matches {modifiers=[required: 10000, banned: 1000], type={ type input instanceof interface java.util.Map }} at com.comphenix.protocol.reflect.FuzzyReflection.getField(FuzzyReflection.java:352) at com.comphenix.protocol.injector.packet.PacketRegistry.createNewRegister(PacketRegistry.java:188) at com.comphenix.protocol.injector.packet.PacketRegistry.initialize(PacketRegistry.java:292) at com.comphenix.protocol.injector.packet.PacketRegistry.getClientPacketTypes(PacketRegistry.java:327) at com.comphenix.protocol.injector.PacketFilterManager.(PacketFilterManager.java:120) at com.comphenix.protocol.injector.PacketFilterBuilder.build(PacketFilterBuilder.java:121) at com.comphenix.protocol.ProtocolLib.onLoad(ProtocolLib.java:183) at org.bukkit.craftbukkit.v1_20_R2.CraftServer.loadPlugins(CraftServer.java:442) at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:219) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:954) at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:298) at java.base/java.lang.Thread.run(Thread.java:840) Dump: Parameters: [NULL] Sender: com.comphenix.protocol.ProtocolLib@2c8a5242[ statistics= packetTask= tickCounter=0 configExpectedMod=-1 updater=com.comphenix.protocol.updater.SpigotUpdater@74ec24b6 redirectHandler= scheduler=com.comphenix.protocol.scheduler.DefaultScheduler@63bf7ae5 commandProtocol= commandPacket= commandFilter= packetLogging= skipDisable=false isEnabled=false loader=org.bukkit.plugin.java.JavaPluginLoader@2e517d2b server=CraftServer{serverName=CraftBukkit,serverVersion=3950-Spigot-2888990-d485cde,minecraftVersion=1.20.2} file=plugins/ProtocolLib.jar description=org.bukkit.plugin.PluginDescriptionFile@456b65d5 dataFolder=plugins/ProtocolLib classLoader=org.bukkit.plugin.java.PluginClassLoader@67784954 naggable=true newConfig=YamlConfiguration[path='', root='YamlConfiguration'] configFile=plugins/ProtocolLib/config.yml logger=org.bukkit.plugin.PluginLogger@7806c162 ] Version: ProtocolLib v5.1.0 Java Version: 17.0.9 Server: 3950-Spigot-2888990-d485cde (MC: 1.20.2)

[03:07:07] [Server thread/INFO]: [WeaponMechanics] Loading WeaponMechanics v3.2.10 [03:07:08] [Server thread/INFO]: [MechanicsCore] Enabling MechanicsCore v3.2.8 [03:07:08] [Server thread/INFO]: [MechanicsCore] Registered 3 custom items from plugins/MechanicsCore/Items [03:07:08] [Server thread/INFO]: [ProtocolLib] Enabling ProtocolLib v5.1.0 [03:07:08] [Server thread/ERROR]: ****************************************************** [03:07:08] [Server thread/ERROR]: *** ProtocolLib does not support plugin reloaders! *** [03:07:08] [Server thread/ERROR]: *** Please use the built-in reload command! *** [03:07:08] [Server thread/ERROR]: ****************************************************** [03:07:08] [Server thread/INFO]: [ProtocolLib] Disabling ProtocolLib v5.1.0

Version Info ProtocolLib doesnt work, but i think info is above Additional context I installed ProtocolLib with PlugManX, and it gave me that error about plugin reloaders, so I thought it was plugman. AT the time I only got the reloaders message. That shouldn't have happened, PlugMan is configured to ignore it. Then I removed PlugMan and restarted and got this log. I am running 1.20.2 spigot.

GustyCube avatar Feb 06 '24 03:02 GustyCube

You should check the first error message which should state that the version of ProtocolLib you are using is incompatible with Minecraft 1.20.2. Use this development build for 1.20.2 support: https://ci.dmulloy2.net/job/ProtocolLib/679/artifact/build/libs/ProtocolLib.jar

lukalt avatar Feb 06 '24 14:02 lukalt