Fabric API

Fabric API

152M Downloads

Extend the Minecraft Server Management Protocol to allow querying the mod list. (1.21.9)

rotgruengelb opened this issue ยท 2 comments

commented

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:modlist an appropriate namespace and name, respectively?
  • What would the appropriate module (name) for this be?
  • Does this make sense in Fabric API at all?
commented

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

commented

@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.