Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
ServerTap v0.1.1 release | 25.44 MB | Aug 23, 2021 | 1.17 | 5 | Download |
ServerTap v0.1.2 release | 25.44 MB | Aug 23, 2021 | 1.17 | 1 | Download |
ServerTap v0.0.5 beta | 14.85 MB | Aug 23, 2021 | 1.17 | 0 | Download |
ServerTap v0.0.4 beta | 14.83 MB | Aug 23, 2021 | 1.17 | 0 | Download |
ServerTap v0.0.2 beta | 18.97 MB | May 19, 2020 | 1.15 | 29 | Download |
Description
ServerTap
ServerTap is a JSON API for your Bukkit/Spigot/Paper powered Minecraft server.
ServerTap makes it easy to integrate other applications with your server to create new and exciting experiences for your players.
Examples
Get a list of all online players
$ curl 'http://myserver.com:4567/v1/players' [ { "uuid": "55f584e4-f095-48e0-bb8a-eb5c87ffe494", "displayName": "phybros", "address": "localhost", "port": 58529, "exhaustion": 3.5640976, "exp": 0.45454547, "whitelisted": false, "banned": false, "op": true } ]
Get server information
$ curl 'http://myserver.com:4567/v1/server' { "name": "Paper", "motd": "This is my MOTD", "version": "git-Paper-89 (MC: 1.15.2)", "bukkitVersion": "1.15.2-R0.1-SNAPSHOT", "tps": "20.02", "health": { "cpus": 4, "uptime": 71, "totalMemory": 2000158720, "maxMemory": 2000158720, "freeMemory": 1448998104 }, "bannedIps": [], "bannedPlayers": [], "whitelistedPlayers": [ { "uuid": "55f584e4-f095-48e0-bb8a-eb5c87ffe494", "name": "phybros" } ] }
Give a player money (requires Vault-compatible economy plugin)
$ curl -X POST \ 'http://myserver.com:4567/v1/economy/pay' \ --data-urlencode 'uuid=55f584e4-f095-48e0-bb8a-eb5c87ffe494' \ --data-urlencode 'amount=100' "success"
Add a comment