When I create plugin won't load in server?

Discussion in 'Plugin Development' started by iRasS_7rba, Sep 11, 2013.

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

    iRasS_7rba

    Hello developers.

    I've a problem I just started coding and I always getting a problem
    that when I create a plugin it won't load in my server?
    I don't know what is the problem so anyone can help me to solve that?

    Thanks!
     
  2. Offline

    jorisk322

    Do any errors show up in console?
    When you do /pl does your plugin show up in red, or not at all?
     
  3. Offline

    iRasS_7rba

    when i do "/pl" I don't see my plugin.
    and this Console Error.

    [​IMG]
     
  4. Offline

    viper_monster

    Your plugin.yml file is not valid or doesnt exist.

    iRasS_7rba

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

    jorisk322

    iRasS_7rba This ^. You didn't add a plugin.yml. That file contains information the server needs to run your plugin. Read more about the file here.
     
  6. Offline

    iRasS_7rba

    if the Code was like this, what should plugin.yml should be?

     
  7. Offline

    ShadowDog007

    plugin.yml should look like this.
    Code:
    main: me.rass7rba.medic.heal
    name: Heal
    author: iRasS-7rba
    version: 1.0
    Check this link for more info: http://wiki.bukkit.org/Plugin_YAML
     
  8. Offline

    iRasS_7rba

    I did what you wrote, I got same error =\ ?
     
  9. Offline

    ShadowDog007

    iRasS_7rba

    Open the jar file and make sure that your plugin.yml is actually inside of it.

    It should be in the root of the jar.
     
  10. Offline

    iRasS_7rba

    Plugin.yml inside "src" Folder is that right?
     
  11. Offline

    ShadowDog007

  12. Offline

    kreashenz

    iRasS_7rba It doesn't necessarily have to be. It just has to be in the "src" folder
    src folder (open)
    [​IMG]


    Or in no folder.
    No folder (open)
    [​IMG]

    Hopefully this will explain a little bit. Notice the movement of the plugin.yml.
     
  13. Offline

    iRasS_7rba

    kreashenz

    I've tried all that, I still have the error =\!
     
  14. Offline

    viper_monster

    iRasS_7rba What IDE do you use ? if you use Elipse it should look something like this:
    [​IMG]
    and YOUR plugin.yml should look like this:
    Code:java
    1. name: Medic
    2. version: 1.0
    3. main: me.rass7rba.medic.heal
    4. description: Description // describe your plugin
    5. author: iRasS_7rba
    6.  
    7. commands:
    8. heal:
    9. description: heal a player
    10. feed:
    11. description: feed a player


    EDIT: Oh, didnt see that kreashenz included a picture of that already... :p
     
  15. Offline

    ShadowDog007

    iRasS_7rba

    Have you checked the actual jar file?
     
  16. Offline

    iRasS_7rba

  17. Offline

    Fozie

    Emm because plugin.yml is a yml file it need to be made a yml.
    Yml is really sesitive with spaces etc use a YML Parser to check for errors.
    For exemple use this its pretty good :)
    http://yaml-online-parser.appspot.com/
    If it not getting any errors you are ready to go
     
Thread Status:
Not open for further replies.

Share This Page