Hi, I'm new to this forum but I've been developing Minecraft plugins for 2 years; exactly 3 days ago I created a new project in IntelliJ IDEA, having the "Minecraft development" plugin installed in the IDE; problems encountered: - the main class was not found and used anywhere, even if it was created; - not having found the main class, the button that compiles is blocked and colored in gray, therefore I could never test my project. Tried and tested solutions: - Reinstall the IDE; - Reinstall the plugin "Minecraft development"; - Reinstall Java and the openJDK with the appropriate versions for the project. I've already contacted IntelliJ IDEA support and those who integrated the "Minecraft development" plugin; basically IntelliJ sent me to their discord asking for support, which in turn sent me here; if I'm here I hope this time to get a result that helps me solve this problem; what can i do to fix this?
@MrFil_27 Because that is not how plugins work. You can't run them. They don't have a main function. They get loaded by the server.
You've been developing Minecraft plugins for two years, yet don't realize main is not a thing with them? It's weird that your compile button is grey. When you create a new project, it's buildable right from the outset. Are you sure you created the right kind of project? I'd assume you did not.
Of course I realized that; I've created the right type of project at least a hundred times but the error keeps repeating; of course it doesn't need the main() method but this was foolishly suggested to me in order to solve the problem; in the end contacting you I forgot to remove it; if it helps, when I create a new project I select the "Plugin", "Bukkit" and "Spigot" typologies as Bukkit platform and as JDK I use "16 Oracle OpenJDK version 16.0.2"; now I have only the only project left and only that works, after all this time I still don't understand what the reason is and I can't proceed with the resolution in any way Here's a demonstration And this is the error
No "of course" about it; in all the years I've been doing tech support I learned very quickly to never assume competence, lol. It never hurts to check. Hmm that's bizarre. It is pretty straight forward for me: The only diff is I have J17, but I cannot imagine that is relevant.