cant figure out how to make this give me multiple items

  • 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!

Tewtiy

Member
Jul 2, 2023
10
0
1
24
My skript is this and i cannot figure out why it wont give me multiple of said item, ive tried 50 things. The rest of the skript works just not the part of trying to get multiple items

command /givedirt [<player>] [<number>]:
permission: op
trigger:
if number-arg is a number:
give player-arg dirt
 
Code:
command /givedirt [<offline player>] [<integer>]:
    permission: op
    permission message: &cYou do not have permission to use this command.
    trigger:
        if arg-1 and arg-2 is set:
            if arg-1 is online:
                give arg-2 of dirt to ("%arg-1%" parsed as player)
                send "&aSuccessfully gave &6%arg-2%x Dirt &ato &e%arg-1%&a!"
                send "&aYou received &6%arg-2%x Dirt &afrom &e%player%&a!" to arg-1
            else:
                send "&c%arg-1% is offline."
        else:
            send "&cUsage: /givedirt <player> <amount>"
Hello!

This should be what you're looking for. I've improved your command while recreating it.
Don't forget to mark this as the answer if it works! ^-^
 
didnt work originally, but i messed around with it a bit and it worked, thank you!