A shortcut help

Discussion in 'Skript' started by Dark1337, May 30, 2017.

  1. Anyone knows how to make a shortcut of this code.

    on command "/test":
    send "Test Text"
    cancel the event
    on command "/test2":
    send "Test Text"
    cancel the event

    I need to make it like this

    on command "/test":
    on command "/test2":
    send "Test Text"
    cancel the event
     
  2. Use this: "aliases: /test2"
     
  3. Like this?
    Code (Text):
    on command:
        command is "test" or "test2":
            cancel event
            send "Test Text"
            stop
     
  4. Two

    Two

    Let me make that even shorter.

    Code (Text):
    on command "/test" or "/test2":
      cancel the event
      send "Test Text"
     
  5. Thanks to everyone.