Skip to content

problems with annotated command aliases #969

Description

@Yedelo

minecraft 26.1.2, oneconfig ae345b1
full command

exhibit 1: the limbo command

this has the method limbo with a single alias li in value
(simplified)

    @Handler(value = {"li"})
    public void limbo() {
        /* limbo code */
    }

using just /yedel limbo works fully fine:

  • appears in command suggestions and in /fabric-command-api-v2:client help
  • appears in oneconfig's provided /<command> help
  • runs as intended

however, for some reason, it then expects limbo as an argument?
Image
so you can run /yedel limbo or /yedel limbo limbo

using li doesn't work:

  • appears in command suggestions and in /fabric-command-api-v2:client help
  • doesn't appear in oneconfig's provided /<command> help
  • doesn't run as intended

once again, for some reason, it then expects limbo as an argument:
Image
so /yedel li doesn't work but /yedel li limbo does

exhibit 2: the playtime command

this has the method playtime, with both playtime and pt in the value. this is how i expect to do it.

    @Handler(value = {"playtime", "pt"})
    public void playtime() {
        /* playtime code */
    }

this has the exact same behavior as the limbo command, with the same problems,
so /yedel playtime, /yedel playtime playtime, and /yedel pt playtime both work, but /yedel pt doesn't

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions