Solved My main file does not extend JavaPlugin?

Discussion in 'Spigot Plugin Development' started by Artourious, Jan 22, 2020.

  1. Hello so im very new to development and I tried making a simple /fly plugin. I coded everything and exported it only for it to say "me.artourious.customessentials.Main' does not extend JavaPlugin." I checked my file and it does extend javaplugin? What should I do to fix this? (Im actually on 1.15.2 but there was no option for it so I chose 1.15.1)

    Code (Java):
    package me.artourious.customessentials;


    import me.artourious.customessentials.commands.FlyCommand;

    public class Main extends JavaPlugin {
        public void onEnable(){
            new FlyCommand(this);

  2. I don't see anything wrong here. Could you show your plugin.yml? Is the main class defined in the plugin.yml?
  3. Capture2.PNG
    #3 Artourious, Jan 22, 2020
    Last edited: Jan 22, 2020
  4. The red exclamation point on your java project means that there is an error that requires your attention. Make sure that spigot.jar is still in the right location by looking at your project's dependency gui
    • Agree Agree x 1
    • Winner Winner x 1
  5. That was indeed the problem! Thank you for your help