1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Why only command aliases shows in AvailableCommands

Discussion in 'Development' started by Yexeed, Mar 5, 2018.

  1. Yexeed

    Yexeed Slime

    Messages:
    76
    Here's the example:
    I have command called "exampl", it has aliases - "ex", "examp". So, if i start typing it name in minecraft, i will see only aliases, but not the original name - "example".
     
    Derpific likes this.
  2. di2134876

    di2134876 Spider Jockey

    Messages:
    29
    GitHub:
    dk1234987
    Use a switch statement
     
  3. Yexeed

    Yexeed Slime

    Messages:
    76
    Switch statement on what?
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you failed to understand op's question
     
    iiFlamiinBlaze likes this.
  5. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    what he means is when you do for example
    Code:
    commands:
      example:
        description: Example command
        aliases: ["ex", "examp"]
    it only shows "ex" when ur typing a command, and not the others ("examp", "example") The same happens with a command in execute
    PHP:
    $this->setAliases(["ex""examp"]);
     
  6. Kenn Fatt

    Kenn Fatt Slime

    Messages:
    82
    GitHub:
    kennfatt
    Which way you initiate the command?
     
  7. OnTheVerge

    OnTheVerge Spider Jockey

    Messages:
    46
    I noticed this issue aswell:eek:
     
  8. Yexeed

    Yexeed Slime

    Messages:
    76
  9. Yexeed

    Yexeed Slime

    Messages:
    76
    Dktapps fixed this problem in last commits
     
    OnTheVerge likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.