Plugin not working

Discussion in 'Plugin Development' started by Lawnmoers, Mar 4, 2020.

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

    Lawnmoers

    My friend showed me how to make a plugin, and he did the same thing i did and it worked. I also followed a tutorial and it also didn't work the error logs are:
    https://pastebin.com/cHhSAy5Y please help.

    FirstPlugin.java

    Code:
    package plugin;
    
            import org.bukkit.plugin.java.JavaPlugin;
    
    public class FirstPlugin extends JavaPlugin {
    
        public void onEnable() {
            getLogger().info("Pee");
        }
        public void onDisable() {
        }
    }
    
    plugin.yml
    Code:
    name: FirstPlugin
    version: 0.1
    author: Lawnmoers
    main: plugin.FirstPlugin
    description: My first plugin
    
      commands:

    Edit: ive removed "commands:" in plugin.yml it seemed that was causing issues
     
    Last edited: Mar 4, 2020
  2. Offline

    Sensevx

    @Lawnmoers So is it working now? Remember that commands section of you plugin.yml must be the same indention as the description like this.

    Code:
    name: FirstPlugin
    version: 0.1
    author: Lawnmoers
    main: plugin.FirstPlugin
    description: My first plugin
    commands:
    What you did is made the commands section a child of the description.
     
  3. Offline

    Machine Maker

    Please mark this thread as Solved if your issue has been resolved. I assume from your edit that you have fixed your issue.
     
Thread Status:
Not open for further replies.

Share This Page