![]() Your code should now look similar to this: Import the class manually by pressing Alt + Enter and choose import class. Otherwise you will see the word JavaPlugin in red because you haven't imported the class location from the Spigot API. You can choose a suggestion by using the arrow keys and Enter but you can also use the mouse. You will see IntelliJ giving you some suggestions as you type. This is the concept of inheritance ( homework). This makes your class inherit all fields and methods in the Spigot JavaPlugin class. Your Main class should extend JavaPlugin. It's common to name it with your plugin name or just Main. Now right-click on the package you just created and choose New > Java Class.
0 Comments
Leave a Reply. |