Killboard argument help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SandyVerse

Active Member
Mar 19, 2017
51
0
0
33
Using this code
code_language.skript:
command /killboard <text> <text>:
    permission: {@perms}
    trigger:
        if arg-1 is not "add" or "remove" or "name" or "off":
            message "&7&oPlease specify an argument!"
            message "&7&oEx: /killboard name SandyVerse"
            message "&7&oEx: /killboard add SandyVerse"
            message "&7&oEx: /killboard remove SandyVerse"
            message "&7&oEx: /killboard off (Please note, this clears pvp time, meetup time, kills, etc. Please don't run if you're hosting!"
            
        else if arg-1 is "add":
            execute console command "/scoreboard players add %arg-2% uhc 1"
            send "{@P} &6Kill for &6%arg-2% added!"
            
        else if arg-1 is "remove":
            execute console command "/scoreboard players reset %arg-2%"
            send "{@P} &7Kills for &6%arg-1% removed!"
            
        else if arg-1 is "name":
            set {scoreboardname} to "&bAbyssal&8 » &7&o%arg-2%"
            send "{@P} &7Set name to &6%arg-2%!"
            
        else if arg-1 is "off":
            make player execute command "/timerclear"


If the argument isn't set, how would I send the messages that are associated with it?
 
Status
Not open for further replies.