ChaosREST is a plugin that creates a REST API for your Spigot server! The plugin and API allow you to use simple and configurable HTTP requests to run commands, get server info and obtain player statistics that Minecraft keeps track of, such as mobs killed, death count and so on!

Example HTTP requests (routes and endpoints configurable):

Code (Text):
http://server-ip:api-port/command/op_ImDaMilan
http://server-ip:api-port/serverinfo
http://server-ip:api-port/players/ImDaMilan/stats/DEATHS

You can enable and disable which data you want to show, and you can also hide certain data behind an auth key, so only people you trust will be able to see that data!
3NiSiON.png

This plugin doesn't require any additional dependencies!

Code (YAML):

port
: 8080
command-api
:
  is-enabled
: true
  is-public
: false
  auth-key
: '1234567890'
  route
: '/command/:key/:command'
playerdata-api
:
  is-enabled
: true
  is-public
: true
  auth-key
: '1234567890'
  route
: '/players/:player/stats/:statistic'
  blacklisted-statistics
:
   - BELL_RING
server-info-api
:
  is-enabled
: true
  is-public
: true
  auth-key
: '1234567890'
  route
: '/server'
debug
: false
 

If you face any issues, or would like to add something to the plugin, be sure to send me a Discord friend request at ImDaMilan#3333, and I'll respond and help you with anything you need as soon as possible!

:key - The auth key that users will need to pass for authentication, use this only if is-public is set to false.
:player - The name of the player that you want to get the data of or perform the command on.
:command - The command you want to execute, where spaces in the command are represented by an underscore.
:statistic - The statistic you want to get, you can find the full list here. 


Terms of Service:
1. There are no refunds.
2. You are not allowed to redistribute this plugin in any way or form.
3. You are allowed to modify the source code as you see fit, but only for personal usage on your own server/network.
4. For support, contact me on Discord, DO NOT USE THE REVIEWS FOR SUPPORT.