A ready to use template for developing spigot plugins on 1.8.8/1.8.9 with shade plugin integrated including the latest version of PaperMC's server.jar. Tested flawlessly on IntelliJ IDEA Ultimate 2022.2.1.
- Clone this repository.
- Open the project and let maven configure it.
- Run the
packagetask in Maven:Lifecycle > package
Output .jar will be located in
server/plugins/
The
server.jarispaper 1.8.8 build 445. You can see a list of builds here. It probably won't be updated for a long time as the last build was in December 2021.
- Open a terminal and cd into the server folder.
- Run the following command which contains some good performance improving arguments.
# Make sure you're using cmd instead of ps as default terminal.
java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar server.jar noguiOnce you've run your server, you can use
HotSwapinstead of using/reloadif it crashes your load events.
- Create a new run configuration using the
Remote JVM Configurationtype. - Make sure the cmdline arguments match the ones you used to run the server.