Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nuriofernandez/spigot-server-debug-template

A Minecraft server plugin development environment template to allow live debugging of the server
https://github.com/nuriofernandez/spigot-server-debug-template

bukkit debugging intellij java minecraft-plugin papermc settings spigotmc

Last synced: 28 days ago
JSON representation

A Minecraft server plugin development environment template to allow live debugging of the server

Awesome Lists containing this project

README

        

# Spigot debug project template

This is a template project to document how to enable Minecraft plugin debugging easily.

### Before starting

You should execute BuildTools to obtain the latest Spigot Jar file you want to
work with, after that, update pom.xml dependencies to match the Spigot version you are working with.

More info: https://www.spigotmc.org/wiki/buildtools/

![](https://i.imgur.com/74c6834.png)

### First steps

Set up your development server on the `./server` folder, place your desired spigot jar file there,
and all the plugins you will need during development, such as dependencies of your plugin.

### Update Spigot jar file name at the `.run` settings

Go to `./.run/Spigot.run.xml` and replace the following line:

```xml

```

with the proper path of your desired Paper jar file.

### Write some code and test the debugging option!

- Go to `./src/main/...` and add whatever you want to try, an event listener, whatever.

![](https://i.imgur.com/Ghy1KUC.png)

- Place a debugging point in your code.

![](https://i.imgur.com/VPXOOP5.png)

- Execute the server with the debug function on IntelliJ

![](https://i.imgur.com/WAizWvW.png)

## Enjoy!

![](https://i.imgur.com/5wPezcx.png)