mojira.dev
MC-301869

The specification for the minecraft:ip_bans server management method says it returns an array of players even though it returns an array of ip_ban objects

The return type for the minecraft:ip_bans method in the new server managment protocol is incorrect. According to the spec, this method returns a list of Player objects, but it returns a list of ip_ban objects instead.

Method spec:

    {
      "description": "Get the ip ban list",
      "name": "minecraft:ip_bans",
      "params": [],
      "result": {
        "name": "banlist",
        "schema": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/player"
          }
        }
      }
    },

Actual response data:

[ { ip: '1.1.1.1', source: 'NutellaGolem' } ]

Comments 0

No comments.

Julian Vennen

(Unassigned)

Confirmed

Platform

Normal

Dedicated Server

25w36b

25w37a

Retrieved