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 Repositories
and clickImport projects
.- Set the
Import source
to the repository where the.git
folder is located. - Select
Plugin-template/Template
as the folder. - Finish the setup
- Set the
-
Right-click the project in
Package Explorer
and selectRefactor
- Rename the
Maven Artifact
to match your namespace. - Rename the
Java Project
to match your plugin.
- Rename the
-
Open
Template.java
insrc/main/java
- Rename the gloryrock.template.main Java package to match your namespace.
- Rename or replace the main class
Template.java
with something that match your entry point.
-
Open
pom.xml
in the project root- Rename the
groupId
to match your own namespace. - Rename
artifactId
to your own plugin name. - Change the
source
andtarget
version of Java to the ones you've installed. - Change the
spigot-api
version to the most recent one found here.
- Rename the
-
Open
plugin.yml
insrc/main/resources
- Change the
name
to your plugin name. - Change the
main
to your own main class in the package that matches your namespace. - Change the
author
to your username. - Change the
description
to 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.