aadnk / ProtocolLib

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

IllegalArgumentException: Unable to find a field gson with the type com.google.gson.Gson in net.minecraft.server.v1_8_R1.ChatSerializer #149

Closed nathanfranke closed 6 years ago

nathanfranke commented 6 years ago

Using Spigot

latest.log

Error happens on Join, when Essentials sends a message and is caught by my plugin. This reproduces:

ProtocolLibrary.getProtocolManager().addPacketListener(new PacketAdapter (this, PacketType.Play.Server.CHAT) {

    @Override
    public void onPacketSending (PacketEvent event) {

        event.getPacket().getChatComponents().read(0);

    }

});

Spigot says:

[SpigetUpdate] Invalid SemVer versions specified [3141-SNAPSHOT] [3140-SNAPSHOT]

But I just updated it, (Using BuildTools) so it shouldn't be a problem

Removing Essentials WILL "fix" the problem, but there will still be an error when any message is sent to the player