- PaperMC server. Look at the
api-versioninpaper-plugin.ymlto see the minimum version.
- Download the latest jar file and put it into your plugins folder.
- Start the Paper server. This plugin will create a default config file for you.
- Stop the Paper server.
- Edit the config file. Read the docs.
- You are good to go.
This plugin uses the com.sun.net.httpserver.HttpServer with the http protocol wich is not encrypted.
If your API is publicly avaliable you should use a proxy like NGINX to encrypt its connection.
This server is resource intensive because it requires reflection. I tried to do as much reflection as possible once at program startup to avoid it during runtime.
Read more about the reasoning here
There is a wiki for this repository containing the full documentation.