Plugin Broke

Discussion in 'Plugin Development' started by djscoobyg2, Dec 8, 2014.

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

    djscoobyg2

    Hey bukkiters, I was wondering if you can help me. I am coding a bukkit plugin for my server and i've got all the code correct but I dont think the plugin.yml wants to work, help plz?
     
  2. Offline

    mythbusterma

  3. Offline

    djscoobyg2

    It doesnt show up in console
     
  4. Offline

    mythbusterma

    djscoobyg2

    Well then I don't think you even put a .jar in the plugins folder.
     
  5. Offline

    djscoobyg2

    I have.

    Ill double check

    <Edited by bwfcwalshy: Merged posts, please use the edit button rather than double posting.>
     
  6. Offline

    mythbusterma

    djscoobyg2

    Well then either the plugin will load or you'll have an error in your console.
     
  7. djscoobyg2 Please paste your plugin.yml and also when you do /pl does it show up?
     
  8. Offline

    djscoobyg2

    Can you come on my server?

    name: ClearChat
    version: 0.1
    author: djscoobyg2
    main: me.djscoobyg2.ScoobyPlugins.ClearChat
    commands:
    clearchat:
    description: Clearchat commands
    aliases: cchat
    And it doesnt come up

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 29, 2016
  9. djscoobyg2 No I will not, and please tahg me next time so I can respond faster. Please paste your plugin.yml and when you do /pl does it show up?

    EDIT: Please put in either code tags or paste in http://pastebin.com
     
  10. Offline

    Skionz

    djscoobyg2 Can you post more information? Are you exporting it correctly?
     
  11. Offline

    djscoobyg2

    bwfcwalshy It wont come up and I have just pasted it for you ;)

    EDIT: Skionz Such as?
     
  12. Offline

    SuperOriginal

    code, plugin.yml, errors

    Preferably in code tags so it doesn't remove white space
     
  13. Offline

    Skionz

  14. Offline

    djscoobyg2

    Skionz I have 4 classes
    bwfcwalshy Its in and now will, it will be in my edit

    EDIT: http://pastebin.com/JrUq7HJJ

    SuperOriginal My plugin.yml
    Code:
    name: ClearChat
    version: 0.1
    author: djscoobyg2
    main: me.djscoobyg2.ScoobyPlugins.ClearChat
    commands:
        clearchat:
          description: Clearchat commands
          aliases: cchat
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 29, 2016
  15. Offline

    Skionz

    djscoobyg2 You didn't export it correctly or you exported it to the incorrect location.
     
  16. Offline

    djscoobyg2

    Oh, okay.
    EDIT: Skionz still not working D:
     
  17. Offline

    Skionz

    djscoobyg2 Go through exactly how you are exporting it with as much information as possible including the extension.
     
  18. Offline

    djscoobyg2

    Skionz I right click ScoobyPlugins and click export, then I click Java, Jar File, next. I make sure the blue thing is on ScoobyPlugins then put it where i want it then click finish
     
  19. Offline

    Skionz

    djscoobyg2 Your positive your saving the jar to your plugins folder?
     
  20. Offline

    djscoobyg2

    Skionz I am using a host so I cant. Ill try saving it to my test server.
     
  21. Offline

    Skionz

    djscoobyg2 Are you using an ftp client to put the plugin in the servers plugins folder?
     
  22. Offline

    djscoobyg2

  23. Offline

    Skionz

    djscoobyg2 Well, I'm out of ideas, sorry. It is probably just a dumb mistake.
     
  24. Offline

    djscoobyg2

    On my test server I get this Error
    Code:
    org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:182) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.ja
    va:255) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:23
    3) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [c
    raftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14
    ) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.jav
    a:126) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :420) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
    Caused by: java.lang.NullPointerException
            at me.djscoobyg2.ScoobyPlugins.ClearChat.<init>(ClearChat.java:8) ~[?:?]
     
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    ~[?:1.8.0_25]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    ~[?:1.8.0_25]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce) ~[?:1.8.0_25]
            at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_2
    5]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:178) ~[craftbukkit.jar:git-Bukkit-1.6.4-R2.0-26-g31d7c5f-b2943jnks]
            ... 9 more
    Skionz do you have saros, Ill share you the plugin on there
     
  25. Offline

    Skionz

    djscoobyg2 Its an NPE in the ClearChat class on line 8.
     
  26. Offline

    mythbusterma

    djscoobyg2

    This isn't a forum for adding people on a private service, especially for simple errors that you should be able to fix yourself.

    There's an NPE at line 8 of your main class.
     
  27. Offline

    djscoobyg2

    Skionz Whats a NPE soz, new to coding
     
  28. Offline

    Skionz

    djscoobyg2 Post the line. A quick google search will explain what a Null Pointer Exception (NPE) is.
     
  29. Offline

    djscoobyg2

    Code:
      public String VERSION = getDescription().getVersion();
     
Thread Status:
Not open for further replies.

Share This Page