This repository serves as a template to assist with creating plugins for Project Poseidon.
It includes examples of:
- A configuration file.
- A listener.
- A command.
-
Clone the Repository
- Clone this repository to your local machine.
-
Modify
pom.xml- Update the following fields to reflect your plugin:
nameversiondescription
- Note: Removing
-SNAPSHOTfrom the version will trigger therelease.ymlGitHub Action to create a GitHub release.
- Update the following fields to reflect your plugin:
-
Refactor Package Structure
- Refactor the package
org.retromc.templatepluginto a unique package name for your plugin to avoid conflicts.
- Refactor the package
-
Update
plugin.yml- Update the
plugin.ymlfile to match the refactored package name and plugin metadata.
- Update the
-
Modify the Code
- Customize the code as required for your plugin.
- Important:
- Remove the player greeting example in the listener.
- Remove the test command.
This repository includes a pre-configured GitHub Action:
-
build-and-test.yml:- Runs tests on every push to ensure code quality.
- Uploads an artifact for each commit, allowing others to download the plugin for testing.
-
release.yml:- Automatically creates a GitHub release if the
-SNAPSHOTsuffix is removed from the version inpom.xml.
- Automatically creates a GitHub release if the
With this template, you can kickstart your plugin development for Project Poseidon quickly and efficiently.