A simple plugin to make vault more vaultier.
Log into the minecraft server you wish and run the /getapikey
command
To access the endpoint you should ask the server owner for where they have hosted it.
- Endpoint:
/transfer
- Method:
POST
- Description: Call this endpoint to request funds from a player.
- Body Parameters:
Key
(required): Your API key.Player
(required): The player you wish to transfer funds fromValue
(required): The amount you wish to transfer
- Example Request:
# Transfer $5 from Example Player to yourself curl -X POST 'https://example.com/transfer' \ -H 'Content-Type: application/json' \ -d '{ "Key": "[YOUR API KEY]", "Player": "Example Player", "Value": 5 }'
- Example Response:
{ "error": null, "id": "Example Transaction ID" }
- Endpoint:
/stat/<transactionID>
- Method:
GET
- Description: Call this endpoint check on the status of a request
- URL Parameters:
transactionID
(required): This can be acquired by creating a transaction.
- Example Request:
curl 'https://example.com/stat/ExampleTransactionId'
- Example Response:
*Note: the
{ "error": null, "status": "SUCCESS" }
status
of a transaction could be eitherPENDING
,SUCCESS
orREJECTED
. If it could not be found then it timed out.
There is only 1 configurable thing about this plugin, you can access it in the config.yml
file in the plugins data directory.
You should use a naming scheme for the URLs similar to
example.com/vaultier/<servername>/
To Do | Status |
---|---|
IP Rate limit | Not Planned (Use reverse proxy) |
Key Rate limit | ✔️ |
Allow Blocking users | ✔️ |
Better error handling | Scheduled |
Optimisations | Scheduled |