Working on Hello World plugin, help!

Discussion in 'Plugin Development' started by lhatchy1, Feb 13, 2014.

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

    lhatchy1

    I am following this guide:
    https://docs.google.com/document/d/1RABwEM8FNPHwREOtH3AjTKsPt0jNsvGqb0okPn5-5TY/edit#

    Everything has made sense so far, and I have completed my yml and Java Class. However when I put it into my server I get an invalid yml upon starting the server.

    I really need some help.

    plugin.yml

    name:HelloWorld
    main:com.lhatchy1.helloworld.HelloWorld
    version:1.0

    HelloWorld.java

    package com.lhatchy1.HelloWorld;

    import org.bukkit.plugin.java.JavaPlugin;

    public class HelloWorld extends JavaPlugin
    {
    public void onEnable()
    {
    getLogger().info("HelloWorld!");
    }
    }

    I'm getting invalid plugin exception. I am using 1.5 Craftbukkit atm as the download servers for Craftbukkit were down.
     
  2. Offline

    Harmings

    lhatchy1
    Inside your plugin.yml the main path is case sensitive. Change it to
    main: com.1hatchy1.HelloWorld.HelloWorld
     
  3. Offline

    jordanzilla02

    Also to mention, space out your plugin.yml bro
     
  4. Offline

    lhatchy1

    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page