Question Commands.yml help

Discussion in 'Bukkit Help' started by Ellyssa, Sep 28, 2016.

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

    Ellyssa

    So, my goal is to override the Bukkit command for giving players achievements, I would like to use the vanilla Minecraft one. I have read the commands.yml wiki page, but I'm not really sure what to actually write in the commands.yml file itself.


    Any help would be greatly appreciated!

    Edit: Someone helped me figure it out, works like a charm!
     
    Last edited: Sep 29, 2016
  2. Offline

    R5Minecraft

    Hi Ellyssa, I'm not good at this either but here's how I do it:

    Code:
    aliases:
      icanhasbukkit:
      - version $1-
      server:
      - say SERVER!!!!! <----- Command to run when a player types in the chat/console: /server
      spawn:
      - tp @a 0 50 0
      msg:
      - tell $$1 $$2
    $$1/$$2 = arguments (Things after the command: /time set day - set & day are arguments)
    $$1 is the first argument, $$2 is second, $$3 is third Etc.

    (I'm don't know how to run 2 commands :( )
    Don't use tabs in .yml files it makes it not work. Heres the Syntax:

    command:
    -command to run when above is executed

    ex.

    Code:
    givemedirt:
    - /give @p dirt 1 0
    
    givemedirtwithargs:
    -  /give $$1 dirt 1 0
    I hope this helps you. Need more help then just tell me what's wrong. You Welcome, R5Minecraft
     
Thread Status:
Not open for further replies.

Share This Page