What addon adds functions (skript)

Discussion in 'Bukkit Help' started by vict861a, Mar 15, 2020.

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

    vict861a

    Hi can you help me because i get this error:
    Code:
    [Skript Reloading kits.sk...
    can't understand this event: 'function giveKit(p: player, kit: text):')
    [Skript Encountered 1 error while reloading kits.sk
    My code:
    Code:
    options:
        prefix:    &b&lBoss&4&lPvP &r
       
    function giveKit(p: player, kit: text):
        if {_kit} is "Spiller":
            if {cooldown.%{_kit}%.%{_p}%} is not set:
                set {cooldown.%{_kit}%.%{_p}%} to 2
                equip {_p} with iron helmet named "&8&lSpiller" with lore "&8Velkommen til &b&lBoss&4&lPvP"
                equip {_p} with iron chestplate named "&8&lSpiller" with lore "&8Velkommen til &b&lBoss&4&lPvP"
                equip {_p} with iron leggings named "&8&lSpiller" with lore "&8Velkommen til &b&lBoss&4&lPvP"
                equip {_p} with iron boots named "&8&lSpiller" with lore "&8Velkommen til &b&lBoss&4&lPvP"
               
                give 1 of diamond sword named "Spiller" with lore "&8Velkommen til &b&lBoss&4&lPvP" to {_p}
                give 1 of bow named "Spiller" with lore "&8Velkommen til &b&lBoss&4&lPvP" to {_p}
                give 1 of fishing rod named "Spiller" with lore "&8Velkommen til &b&lBoss&4&lPvP" to {_p}
                give 8 of steak named "&7&lSteaky!" with lore "&8Velkommen til &b&lBoss&4&lPvP" to {_p}
                give 32 of arrow named "Spiller" to {_p}
     
Thread Status:
Not open for further replies.

Share This Page