Main Class Problems

Discussion in 'Plugin Development' started by Legocowchaser, Oct 19, 2013.

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

    Legocowchaser

    Hello I am new to making a plugin and I do not know why but it says I have an error with the main class. It doed not have anything underlined. Here is what my main class looks like;

    package legocowchaser;

    import org.bukkit.plugin.java.JavaPlugin;

    public final class Main extends JavaPlugin {

    public void onEnable() {
    getServer().getPluginManager().registerEvents(new Move(), this);
    }

    public void onDisable() {

    }

    }
     
  2. Offline

    Shzylo

    There isn't a thing wrong with your code. Where does the error occur? Inside of your IDE, at compilation (or exporting), when it is ran on the server? If it is when it is ran on the server, it will have a stack trace, please give it to us to see, and it would be helpful if you put it around the [ CODE] tags.
     
  3. Offline

    SourceForums

    Shzylo likes this.
  4. Offline

    Legocowchaser

    Shzylo
    SourceForums
    It never let me export it. I am so sorry though but I save everything and it did not say I had an error anymore. Sorry. Thanks though.:)
     
Thread Status:
Not open for further replies.

Share This Page