Solved Packet error?

Discussion in 'Spigot Plugin Development' started by zbturtle, May 11, 2016.

  1. Hello, here is my error:

    I can't load my plugin due to this error and I do not understand what may be causing it.

    My code:

    I removed what I believed was causing it, but no dice.

    Thanks in advance for your help ~ zbturtle
    #1 zbturtle, May 11, 2016
    Last edited: May 12, 2016
  2. org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R1/Packet
    and you import
    import net.minecraft.server.v1_8_R1.ChatSerializer;
    import net.minecraft.server.v1_8_R1.IChatBaseComponent;
    import net.minecraft.server.v1_8_R1.PacketPlayOutChat;
    import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer;
    (v1_8_R1 imports)
    when your server is running v1_8_R3
  3. But as you see I put those imports as notes.
  4. Did you try to start the plugin without plugman? The error log doesn't mention your code,it's a bit weird
  5. Ill try it.
  6. Ok, that fixed it but now I'm trying it with removing a lot of the notes I made of certin snips of code.
  7. Now, it doesn't work.
  8. Where would I get the jar for 1_8_R3?
    • Useful Useful x 1
  9. You could use reflection, take the jar off your server, use buildtools, or go to an unoffical download site.
  10. Also, when I click for more information on the clickable text/hoverable text it shows that.
  11. How to fix: don't have arguments in your hover text/clickable text command.