Solved New Plugin

Discussion in 'Plugin Development' started by bizzon_dust, Feb 1, 2017.

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

    bizzon_dust

    Hello,

    I'm new at coding Java, So i have this problem where the plugin just doesn't load.
    "02.02 04:54:01 [Server] ERROR Could not load 'plugins/First.jar' in folder 'plugins'" (Message From Console)

    This is the code. http://pastebin.com/zJnU4ZGK
    This is the Plugin.yml. http://pastebin.com/9n67SSyJ

    Please could you help. I keep thinking i need to update java but i'm not sure,

    Thanks
     
  2. Offline

    OTF Catastrophe

    Can you provide a full latest.log in a pastebin please? The small line of console error doesn't really help aha.
     
  3. Offline

    bizzon_dust

    Ok ahng on

    Is this right? http://pastebin.com/TZKwTJdy

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Feb 1, 2017
  4. Offline

    Burnsalan18

    In plugin.yml change the main to me.bizzon.first.First plugin.yml is very cap sensitive. That got me every time when i first started

    When your plugin wont start. Always check to make sure your plugin.yml is in order.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  5. Offline

    bizzon_dust

    Last edited: Feb 1, 2017
  6. Offline

    Drkmaster83

    The error says you've used a tab in place of spaces. YML is very particular about it.
    Replace everything in your plugin.yml file with this (it replaces every tab with two spacebars)
    Code:
    name: first
    version: 1.0
    main: me.bizzon.first.First
    author: Bizzon
    description: First Plugin
    commands:
      test:
        usage: /<command>
        description: First Plugin!
    
     
  7. Offline

    bizzon_dust

    Sorry, I don't understand lol, I'm new
     
  8. Offline

    Drkmaster83

    So, the plugin.yml file's extension is YML. Just like .java files, .txt files, and .bat files (many more, I'm sure, but these are basic ones), there are certain formats by which you must abide. YML files don't like when you hit the tab button on your keyboard. The error in your console's log (latest.log) said you had a tab character in the file. All I did is deleted all the tabs, and replaced each tab with two spacebars each (YML LOVES spaces). You can copy the code section I posted and paste it directly into the plugin.yml, overwriting all of it, and I'm sure your plugin will load.
     
  9. Offline

    bizzon_dust

    OMG <3 THANKS SO MUCH I LOVE YOU OMG.

    If you're still here do i add a new file to make files?

    Like config.yml?
     
    Last edited: Feb 2, 2017
  10. Offline

    OTF Catastrophe

    @bizzon_dust This link should provide you with a lot of the basic 'need to knows' about the Bukkit API. Included in this page gives you the way to correctly use, load and create a config.yml
    http://wiki.bukkit.org/Configuration_API_Reference

    Once you get that figured out, here is a link that I have saved to create custom .yml files that can be accessed just like a regular config.yml. (Little more advance, seen as how you're just starting)
    https://bukkit.org/threads/tutorial-custom-yml-files.259122/
     
  11. Offline

    bizzon_dust

    Thanks so much guys for helping.

    - Topic Solved
     
  12. Offline

    mehboss

    If your problem has been solved, change the thread prefix to 'solved' using the thread tools on the top of the page.
     
Thread Status:
Not open for further replies.

Share This Page