Question on setting up commands that you can execute, repeatedly, quickly.

Discussion in 'System Administration' started by Siddyf, Sep 8, 2016.

  1. Siddyf

    Siddyf New Member

    Joined:
    Aug 27, 2016
    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Hi,

    I have a keyboard command that I found to help me manage having too many skellyhorses around. It requires 2 commands I believe. I would like to see these two actions come down to a single command for example "/dihorse" so i can roll through and type the command quickly. Thank you.
     
  2. TylerD

    TylerD General Manager
    Administrator

    Joined:
    Aug 7, 2013
    Messages:
    593
    Likes Received:
    88
    Best Answers:
    1
    Hey Siddyf!

    You may be interested in "aliases" available in the commands.yml. Here is an article to assist you further - http://wiki.bukkit.org/Commands.yml


    If I am understanding what you are seeking correctly this example should provide some guidance:
    Code:
    aliases:
        givedirtmsg:
        - "give $$1 minecraft:dirt"
        - "say Gave dirt to $$1"
    /givedirtmsg <player>

    This will create an alias called 'givedirtmsg' which will execute two commands that require an argument before the alias will successfully run. This is the example provided under the "Running multiple commands" section but can be edited to your specifications.
     
  3. Siddyf

    Siddyf New Member

    Joined:
    Aug 27, 2016
    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    That is exactly what I was thinking of.:)
     

Share This Page