Solved New Plugin

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

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



    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.
    This is the Plugin.yml.

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

  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


    Ok ahng on

    Is this right?

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


    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


    Last edited: Feb 1, 2017
  6. Offline


    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)
    name: first
    version: 1.0
    main: me.bizzon.first.First
    author: Bizzon
    description: First Plugin
        usage: /<command>
        description: First Plugin!
  7. Offline


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


    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



    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

    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)
  11. Offline


    Thanks so much guys for helping.

    - Topic Solved
  12. Offline


    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