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 Main.java 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 org.bukkit.plugin.java.JavaPlugin; import me.artourious.customessentials.commands.FlyCommand; public class Main extends JavaPlugin { @Override public void onEnable(){ saveDefaultConfig(); new FlyCommand(this); } }
I don't see anything wrong here. Could you show your plugin.yml? Is the main class defined in the plugin.yml?
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