citizens api : java.lang.ClassNotFoundException

Discussion in 'Plugin Development' started by dekrosik, May 30, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    dekrosik

    i try to use citizens api to make npc in project i don't have any errors but when i start server i have this error:
    Code:
    Caused by: java.lang.ClassNotFoundException: net.citizensnpcs.api.CitizensAPI
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_91]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[paperspigot-1.7.10-R0.1-SNAPSHOT.jar:git-PaperSpigot-1f7d532]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[paperspigot-1.7.10-R0.1-SNAPSHOT.jar:git-PaperSpigot-1f7d532]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_91]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_91]
    
    in this line:
    npc = CitizensAPI.getNPCRegistry().createNPC(EntityType.PLAYER, name);
    how to fix this?
     
  2. Online

    timtower Administrator Administrator Moderator

    Moved to plugin development.
    @dekrosik Did you add depends: [Citizens] in your plugin.yml? Did you install Citizens?
     
  3. Offline

    dekrosik

    yea but i think i dowload bad version citizen;/ where i can found citizen for spigot 1.7-1.8?

    ok i found good version but i have question how i can change skin this npc? xD

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  4. Offline

    srspore

    @dekrosik I'm having the same problem. Where did you find the updated versions of everything? Thank you!

    Edit: I figured it out. I had CraftBukkit for 1.9.4 and Citezens for 1.9. I had to downgrade my CraftBukkit, if anyone knows where I could find a more up to date Citezens that would be awesome!
     
    Last edited: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page