NCP Error

Discussion in 'Spigot Plugin Development' started by Angeles, May 25, 2016.

  1. [17:37:08 WARN]: [Aphrodite] Task #116 for Aphrodite v1.0 generated an exception
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.minecraft.server.v1_7_R4.Packet;
    at net.techcable.npclib.nms.versions.v1_7_R4.NMS.notifyOfEquipmentChange(NMS.java:156) ~[?:?]
    at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:179) ~[?:?]
    at net.techcable.npclib.nms.NMSNPC.run(NMSNPC.java:167) ~[?:?]
    at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot(2).jar:git-Spigot-1649]
     
  2. Show me the full error?
     
  3. [17:37:08 WARN]: [Aphrodite] Task #116 for Aphrodite v1.0 generated an exception
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.minecraft.server.v1_7_R4.Packet;
    at net.techcable.npclib.nms.versions.v1_7_R4.NMS.notifyOfEquipmentChange(NMS.java:156) ~[?:?]
    at net.techcable.npclib.nms.NMSNPC.tryEquipmentChangeNotify(NMSNPC.java:179) ~[?:?]
    at net.techcable.npclib.nms.NMSNPC.run(NMSNPC.java:167) ~[?:?]
    at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot(2).jar:git-Spigot-1649]
    at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot(2).jar:git-Spigot-1649]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot(2).jar:git-Spigot-1649]


    Thats it
     
  4. i9hdkill

    i9hdkill Retired Moderator
    Retired Supporter

    It's not compatible with your version of spigot.
    Is that a custom coded plugin?
     
  5. yes i coded it
     
  6. i9hdkill

    i9hdkill Retired Moderator
    Retired Supporter

    The protocolhack isn't officially supported anymore, but you might have luck and get some help anyway:)
    Paste snippets of your code so we can have a look.
     
  7. this.uuidManager = new UUIDManager(this);
    this.npcRegistry = NPCLib.getNPCRegistry("HCF-NPC", this);
    for (NPC npc : this.npcRegistry.listNpcs()) {
    npc.despawn();
    }