Script commands not working?

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

Victor Hovmand

New Member
Mar 11, 2020
9
0
0
23
Hi, when i reload my skript it is just saying its succesful but when i try to use my command it just says
Unknown command. Type "/help for help."

My code
Code:
options:
    prefix: &b&lBoss&4&lPvP &r
  
function giveKit(p: player, kit: text):
    if {_kit} is "start":
        if {cooldown.%{_kit}%.%{_p}%} is not set:
            set {cooldown.%{_kit}%.%{_p}%} to 0
            equip {_p} with iron helmet named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron chestplate named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron leggings named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron boots named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
          
            give 1 of diamond sword named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 1 of bow named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 1 of fishing rod named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 8 of steak named "&4Steaky" with lore "&bSlurp Slurp" to {_p}
            give 16 of arrow named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
        else:
            send "{@prefix} &cDu har cooldown på dette kit, du kan tage det om %{cooldown.%{_kit}%.%{_p}%}% Minutter" to {_p}
          
every 1 minute in "world":
    loop all players:
        if {cooldown.Starter.%loop-player%} is set:
            subtract 1 from {cooldown.Starter.%loop-player%}
            if {cooldown.Starter.%loop-player%} is less than 1:
                delete {cooldown.Starter.%loop-player%}
                send "{@prefix} &aDu kan nu tage dit kit Starter" to loop-player
              
command /take [<text>]:
    trigger:
        giveKit(player, arg-1)

Any help
 
Last edited:
Hi, when i reload my skript it is just saying its succesful but when i try to use my command it just says
Unknown command. Type "/help for help."

My code
Code:
options:
    prefix: &b&lBoss&4&lPvP &r
 
function giveKit(p: player, kit: text):
    if {_kit} is "start":
        if {cooldown.%{_kit}%.%{_p}%} is not set:
            set {cooldown.%{_kit}%.%{_p}%} to 0
            equip {_p} with iron helmet named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron chestplate named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron leggings named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
            equip {_p} with iron boots named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP"
         
            give 1 of diamond sword named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 1 of bow named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 1 of fishing rod named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
            give 8 of steak named "&4Steaky" with lore "&bSlurp Slurp" to {_p}
            give 16 of arrow named "&8Starter" with lore "&aVelkommen til &4&lBoss&4&lPvP" to {_p}
        else:
            send "{@prefix} &cDu har cooldown på dette kit, du kan tage det om %{cooldown.%{_kit}%.%{_p}%}% Minutter" to {_p}
         
every 1 minute in "world":
    loop all players:
        if {cooldown.Starter.%loop-player%} is set:
            subtract 1 from {cooldown.Starter.%loop-player%}
            if {cooldown.Starter.%loop-player%} is less than 1:
                delete {cooldown.Starter.%loop-player%}
                send "{@prefix} &aDu kan nu tage dit kit Starter" to loop-player
             
command /take [<text>]:
    trigger:
        giveKit(player, arg-1)

Any help


U must have console errors
 
Status
Not open for further replies.