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:
    26
    GitHub:
    dk1234987
    Use a switch statement
     
  3. Yexeed

    Yexeed Slime

    Messages:
    76
    Switch statement on what?
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member Verified

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

    PotatoeTheDev Witch

    Messages:
    63
    GitHub:
    potatoetrainyt
    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:
    81
    GitHub:
    kennfatt
    Which way you initiate the command?
     
  7. OnTheVerge

    OnTheVerge Spider Jockey

    Messages:
    36
    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.

Share This Page

  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.