Problem/Bug [MyCommand] Different commands, same return

Discussion in 'Bukkit Help' started by Henriksen1000, Apr 17, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Henriksen1000

    Hello!

    I really need help... I made a few commands with same command like this:
    Config:

    Code:
    'g':
    'staff':
      command: /staff
      type: TEXT
      text:
      - '&b-----------------------------------------------------'
      - '&6Available staff commands:'
      - '&e/staff promote &f- &fPromote someone.
      - '&e/staff demote &f- &fDemote someone.
      - '&b-----------------------------------------------------'
      permission-required: false
    'staff promote':
      command: /staff promote
      type: RUN_CONSOLE
      runcmd:
      - '/pex user $arg1 group set Admin'
      permission-required: false
    If I am typing /staff I am getting the message I wrote in, but if I type /staff promote it won't run the command I wrote in, it will only run the run the /staff text.

    Please help me!
    If you don't understand or need more information, please ask and I will describe.
     
  2. Offline

    nverdier

    @Henriksen1000 The command is the first 'word' they type. Anything after the space is considered an argument.
     
  3. Offline

    Henriksen1000

    How do I add that?!?!
     
Thread Status:
Not open for further replies.

Share This Page