Won't give people 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!

Status
Not open for further replies.
May 29, 2020
4
0
0
16
command /kit <text>:
trigger:
if arg 1 is not set:
send "&cYou must pick a kit, kit list coming soon, for now, just do /kit pvp"
if arg 1 is "pvp":
if {cooldown.pvpkit.%player%} is true:
send "&eYou are on cooldown for this kit, try again later!"
else:
give player {_pvphelmet}
give player {_pvpchestplate}
give player {_pvpleggings}
give player {_pvpboots}
give player {_pvpsword}
give player {_pvpgoldenapple}
give player {_pvpbow}
give player {_pvparrow}
set {cooldown.pvpkit.%player%} to true
wait 1 minute
set {cooldown.pvpkit.%player%} to false
every 10 seconds:
set {_pvphelmet} to iron helmet
enchant {_pvphelmet} with protection 1
enchant {_pvphelmet} with unbreaking 2
set {_pvpchestplate} to iron chestplate
enchant {_pvpchestplate} with protection 1
enchant {_pvpchestplate} with unbreaking 2
set {_pvpleggings} to iron leggings
enchant {_pvpleggings} with protection 1
enchant {_pvpleggings} with unbreaking 2
set {_pvpboots} to iron boots
enchant {_pvpboots} with protection 1
enchant {_pvpboots} with unbreaking 2
set {_pvpsword} to iron sword
enchant {_pvpsword} with sharpness 2
enchant {_pvpsword} with unbreaking 2
set {_pvpgoldenapple} to 16 golden apple
set {_pvpbow} to bow
enchant {_pvpbow} with power 1
set {_pvparrow} to 32 arrow

It won't give people the armor, any items why?
Also, there are no errors
 
"_" means it is special to the event or command, which means if you remove that, it should work.
Code:
variables:
    {pvphelmet} = iron helmet of protection 1 and unbreaking 2
    {pvpchestplate} = iron chestplate of protection 1 and unbreaking 2
    {pvpleggings} = iron leggings of protection 1 and unbreaking 2
    {pvpboots} = iron boots of protection 1 and unbreaking 2
    {pvpsword} = iron sword of sharpness 1 and unbreaking 2
    {pvpgoldenapple} = 16 golden apple
    {pvpbow} = bow of power 1
    {pvparrow} = 32 arrow
command /kit <text>:
    trigger:
        if arg 1 is not set:
            send "&cYou must pick a kit, kit list coming soon, for now, just do /kit pvp"
        if arg 1 is "pvp":
            if {cooldown.pvpkit.%player%} is true:
                send "&eYou are on cooldown for this kit, try again later!"
            else:
                give player {pvphelmet}
                give player {pvpchestplate}
                give player {pvpleggings}
                give player {pvpboots}
                give player {pvpsword}
                give player {pvpgoldenapple}
                give player {pvpbow}
                give player {pvparrow}
                set {cooldown.pvpkit.%player%} to true
                wait 1 minute
                set {cooldown.pvpkit.%player%} to false
 
or you could wait to give the items to before you set the variables
 
Status
Not open for further replies.