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$ ~[?:?]
        at ~[spigot.jar:git-Bukkit-7723b90]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat( [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B( [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B( [spigot.jar:git-Bukkit-7723b90]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A( [spigot.jar:git-Bukkit-7723b90]
        at [spigot.jar:git-Bukkit-7723b90]
        at [?: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