Extend the Minecraft Server Management Protocol to allow querying the mod list. (1.21.9)
rotgruengelb opened this issue ยท 2 comments
Basically, all this would do is adding the following method:
...
{
"description": "Get all Fabric mods loaded on the server",
"name": "fabric:modlist",
"params": [],
"result": {
"name": "modlist",
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/mod"
}
}
}
},
...and the following schema:
...
"mod": {
"type": "object",
"properties": {
"id": {
"type": "string",
},
"name": {
"type": "string",
},
"version": {
"type": "string",
},
"children": {
"type": "array",
"items": { "$ref": "#/components/schemas/mod" }
}
},
"required": ["id", "name", "version", "children"]
}
...Things we might need to think about:
- Is
fabric:modlistan appropriate namespace and name, respectively? - What would the appropriate module (name) for this be?
- Does this make sense in Fabric API at all?
fabric:mod_list may be better.
Also i think it must be configurable to enable/disable this method (so servers can block querying) and hiding selected mod ids
@BoBkiNN I don't think that's necessary since the api now requires authentication so random people can't just query it. But it would still be nice to have.