- To get started with this project, you first have to
git clonethis repository.
Note: Make sure you have Maven installed on your system for the next steps
-
Run
mvn paper-nms:initto initializenms(net.minecraft.server, used for stuff related to sending packets) -
Make changes to the code
-
Run
mvn packageto generate a plugin jar file.
For ease of access, I have included a launch.json file in the .vscode folder. In VSCode you can press F5 to start a debug session on Port 5005, with which you can use Hot-Code-Replacement when testing the plugin.
To use this, make sure to start your server with the following argument:
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar your_server.jar
Or alternatively, you can press F1 in VSCode and type Tasks: Run Task and run the Start Server task, after creating a directory called server in the project root folder and adding your desired Server-Jar (must be named server.jar) in it.
If you copy the .env.example file to .env and put in the necessary data, you can spin up a MySQL database via docker compose up. Keep in mind that this is only for testing, as the connection from the plugin is configured in its config.yml file.