You can use this template to develop your own Spigot plugins with Gradle.
Version | Support |
---|---|
1.8.8 | ✔️ |
1.12.2 | ✔️ |
1.13.2 | ✔️ |
1.14.4 | ✔️ |
1.15.2 | ✔️ |
Note This setup is actual only for IntelliJ
- Create a new Github project using this template
- Clone this repository and open it in IntelliJ
- Import the project with gradle
- Go into the gradle.properties file and update the variables.
- Then execute the setupServer run configuration and the template will download the server jar file.
Then you can start coding :)
You can export your plugin to the plugins directory from your working directory with the Gradle deploy task. The task will build and copy your plugin automatically.
You can use and debug the installed test server by running the Server run configuration. Every time you start the server, the plugin will be deployed. You can disable it, when you edit the Server run configuration.
By using this template and starting the server, you agree to the Minecraft EULA automatically, because in this template is the eula file, because then you dont have to agree manually.