Demo image:
API Documentation
✅ Endpoint: Get player inventory
URL:
GET
http://localhost:8080/inventory?player=ans
Query Parameter:
- player (required): The Minecraft username (case-insensitive).
Sample JSON Response:
json
{
"inventory": [
{
"slot": 0,
"type": "minecraft:diamond_sword",
"amount": 1,
"meta": {
"displayName": "§bSharp Blade",
"lore": ["§7An enchanted weapon"],
"enchants": {
"sharpness": 5,
"unbreaking": 3
}
}
},
{
"slot": 1,
"type": "minecraft:golden_apple",
"amount": 5
}
],
"armor": [
{
"slot": "head",
"type": "minecraft:diamond_helmet",
"amount": 1,
"meta": {
"enchants": {
"protection": 4
}
}
}
],
"offhand": {
"type": "minecraft:shield",
"amount": 1
},
"enderChest": [
{
"slot": 0,
"type": "minecraft:ender_pearl",
"amount": 16
}
]
}
⚙️ Configuration (config.yml)
yaml
host: "localhost"
port: 8080
You can change the host and port to fit your deployment environment.
How to Use
- Place the plugin .jar in your Minecraft server's plugins/ folder.
- Start the server to auto-generate the configuration file.
- Send HTTP requests from any frontend or backend to fetch player inventories.