Error

Discussion in 'Spigot Plugin Development' started by LazerShadow, Jul 23, 2015.

  1. I use this code to remove arrows from a player.

    Code (Java):
    ((CraftPlayer) player).getHandle().getDataWatcher().watch(9, (byte) 0);
    but every time it runs an error occurs in the console.

    Code (Text):
    [13:06:50 WARN]: [Arcadia] Task #120 for Arcadia v2.0.0 generated an exception
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_8_R1/entity/CraftPlayer
        at com.creativetimesmc.Main.Main$2.run(Main.java:247) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:53) ~[spigot.jar:git-Bukkit-7723b90]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:683) [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:335) [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:632) [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:540) [spigot.jar:git-Bukkit-7723b90]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
     
  2. You have to check your server version. Your plugin relies on v1_8_R1, so the server should be that version too.
     
  3. Are you using Spigot, Bukkit, or CraftBukkit?
     
  4. the amount of people that don't read the stickies is crazy, READ THE STICKIES they are there for a reason, especially THIS one...
     
    • Like Like x 1