Plugin Help My plugin dont start

Discussion in 'Plugin Help/Development/Requests' started by tomasalves35, May 31, 2015.

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

    tomasalves35

    Last edited by a moderator: May 31, 2015
  2. @tomasalves35 Post your plugin.yml and your command needs to be indented, you also need to check the player before casting!
     
  3. Offline

    tomasalves35

    Last edited by a moderator: Jun 12, 2016
  4. Offline

    I Al Istannen

    @tomasalves35 "Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml".
    The plugin.yml need to be directly in the src folder, not in any subfolder.
     
  5. @tomasalves35 It's in the wrong place. It needs to be in the project.
     
  6. Offline

    tomasalves35

    in main java?
     
  7. Offline

    I Al Istannen

    @tomasalves35
     
  8. Offline

    tomasalves35

  9. Offline

    I Al Istannen

    @tomasalves35 You need to write "Name" in lower case. Just as "Version". It should be "name" and "version".
     
  10. Offline

    tomasalves35

    give me an exemple please
     
  11. Offline

    I Al Istannen

    @tomasalves35 In your plugin.yml you wrote "Name" and "Version". Just write it in lower case. That would be "name" and "version", as the all chars have to be lowercase.
     
  12. @tomasalves35

    Code:
    name: Example
    author: Author
    version: 1.0
    main: Pack.To.Main.Class
    commands:
      example:
        description: Example description
     
    I Al Istannen likes this.
  13. Offline

    tomasalves35

    Last edited by a moderator: May 31, 2015
  14. @tomasalves35 That isn't the path to your main class. It should be package.MainClass
     
  15. Offline

    tomasalves35

    man im not understanding
     
  16. Offline

    I Al Istannen

    @tomasalves35 Your main class is in the package "me.tomasalves8.PigExplode" (look at the first line of your Main.class). You need to insert the path to your Main class (the one that extends JavaPlugin) after the "main:" in the plugin.yml. Currently you have "me.tomasalves8.PigExplode" which is just your package. But you need the MAIN class. The path to a class is "package.name". Your package is "me.tomasalves8.PigExplode", your Main class name is "Main". That goes to "me.tomasalves8.PigExplode.Main".
     
    Last edited: May 31, 2015
    CoolGamerXD and bwfcwalshy like this.
  17. Offline

    tomasalves35

    ok i finaly do it
     
  18. Offline

    nverdier

    Please mark this as solved if it is so.
     
    CoolGamerXD likes this.
  19. Offline

    tomasalves35

  20. Offline

    nverdier

    @tomasalves35 Thread Tools > Edit Thread > Select 'Solved' Prefix > Save Changes
     
Thread Status:
Not open for further replies.

Share This Page