Solved Plugin Error

Discussion in 'Plugin Development' started by Yarmoam, Nov 23, 2014.

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

    Yarmoam

    Disclaimer: I am very new to coding.

    I'm currently trying to make a simple plugin that displays a list of staff. I've made the plugin, but for some reason, it doesn't work. The error in the console will be listed below. I think it's my plugin.yml, but I'm not very sure. Any advice or help is greatly appreciate, thank you very much!

    Error
    http://pastebin.com/mk5jzb0T

    Plugin.yml
    http://pastebin.com/Egkj0TBL
     
  2. Offline

    mine-care

    Caused by: java.lang.ClassNotFoundException: me.BroBroBr:confused:PMWStaff
    Make sure in your main: in the plugin yml you include package.mainclass with proper capitalisation
    it would be good if we could see your main class to trace exacly where the error is!
     
    SuperOriginal likes this.
  3. Offline

    Yarmoam

    What do you mean by that?

    Again, I'm kinda new, so if this isn't what you meant by "main class", my bad.
    http://pastebin.com/rrCWcs3w
     
  4. Offline

    Avygeil

    Yarmoam See the basic tutorial for doing commands. Also your enable/disable methods are wrongly capitalized.
    As for your error : you forgot the class name in your plugin.yml.
     
  5. Offline

    TGRHavoc

    Yarmoam
    Like Avygeil has already mentioned, you forgot to put the name of your main class in the plugin.yml. It should be
    Code:
    main: me.BroBroBro.OPMWStaff.OPMWStaff
     
  6. Offline

    Skionz

  7. Offline

    Yarmoam

    Avygeil Skionz
    Thanks for the tips and helping me with my problem, I appreciate it :)
     
    Skionz likes this.
Thread Status:
Not open for further replies.

Share This Page