Spigot plugin setup for Maven in Eclipse. This repository is a template for Maven projects in Eclipse to develop Java plugins. Maven will update the dependencies and project settings based on the project descriptor. This will help automate the development
| Name | Description | Version |
|---|---|---|
| Eclipse | The essential tools for any Java developer. | Eclipse IDE for Java Developers |
| Java | Java lets you develop and deploy Java applications on desktops and servers. | JDK and JRE 8 or newer |
-
Clone this git repository into your Eclipse workspace using EGit, GitHub or Git.
-
Right-click the repository in
Git Repositoriesand clickImport projects.- Set the
Import sourceto the repository where the.gitfolder is located. - Select
Plugin-template/Templateas the folder. - Finish the setup
- Set the
-
Right-click the project in
Package Explorerand selectRefactor- Rename the
Maven Artifactto match your namespace. - Rename the
Java Projectto match your plugin.
- Rename the
-
Open
Template.javainsrc/main/java- Rename the gloryrock.template.main Java package to match your namespace.
- Rename or replace the main class
Template.javawith something that match your entry point.
-
Open
pom.xmlin the project root- Rename the
groupIdto match your own namespace. - Rename
artifactIdto your own plugin name. - Change the
sourceandtargetversion of Java to the ones you've installed. - Change the
spigot-apiversion to the most recent one found here.
- Rename the
-
Open
plugin.ymlinsrc/main/resources- Change the
nameto your plugin name. - Change the
mainto your own main class in the package that matches your namespace. - Change the
authorto your username. - Change the
descriptionto match your plugin.
- Change the
User-contributed code examples for simple plugins
Creating your first bukkit plugin
This project is licensed under the MIT License. Licenses of tools and dependencies are not included and may vary.