/papermc-web-api

Secure web api for Minecraft paper servers with OAuth2

Primary LanguageJavaMIT LicenseMIT

PaperMC Web API

Deploy build artifacts

this product is ai free

Requirements

Setup

  1. Download the latest jar file and put it into your plugins folder.
  2. Start the Paper server. This plugin will create a default config file for you.
  3. Stop the Paper server.
  4. Edit the config file. Read the docs.
  5. You are good to go.

Disclaimer

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

Documentation

There is a wiki for this repository containing the full documentation.