GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MUNComputerScienceSociety/Whitelist-HTTP-API: Enable Minecraft whitelist management from an exposed HTTP endpoint

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main
src/main
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Whitelist HTTP API

Enable Minecraft whitelist management from an exposed HTTP endpoint


GET / -> [] of {uuid: "...", name: "..."} - Returns the whitelist.json of the server.

POST / ({name: "..."}) -> 201 - Adds a user to the whitelist via username.

DELETE / ({name: "..."}) -> 201 - Removes a user from the whitelist via username.


  • Interfacing with the whitelist via Bukkit's API doesn't seem to work properly, so this plugin just calls the whitelist command directly, as you would via the server console.
  • Even if the server fails to whitelist a player, the response will still be a 201, so it is assumed you hand the server a valid Minecraft username.
  • Default port is 7500, configurable via <server dir>/plugins/<plugin dir>/config.yml.
  • Everything is application/json.
  • Authentication is done via Bearer Tokens, any request must contain a valid Bearer Token to be served anything but a 403.

<server dir>/plugins/<plugin dir>/config.yml:

bearer_token: <token>

Example HTTP request w/valid header:

GET / HTTP/x.x
Content-Type: application/json
Authorization: WHA <token>
Host: <host>:<port>

About

Enable Minecraft whitelist management from an exposed HTTP endpoint

Resources

Readme
Activity
Custom properties

Stars

7 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.