Broken Command

  • 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.
Jul 1, 2017
22
0
0
34
For some reason the last line of this code is causing the command to break and I'm wondering why that might be.
code_language.skript:
command /ksmenu13:
    trigger:
        if {team.%player%} is equal to "Red":
            if {corejump.progress.redteam} >= 20:
                message "&7Core Jump Buff Already Purchased."
            else if {kill_streak.%player%.count} >= 1:
                add 1 to {corejump.progress.redteam}
                set {kill_streak.%player%.count} to {kill_streak.%player%.count} - 1
                message "&7Added to Core Jump Buff total."
                if {corejump.progress.redteam} is equal to 20:
                    set {corejump.redteam} to 1
                    loop {loop.count} times:
                        if {corejump.redteam} is equal to 0:
                            stop loop
                        add 1 to {loop.count}
                        wait 1 second
                        loop all players:
                            if {team.%loop-player%} is equal to "Red":
                                loop blocks in radius 8 of loop-player:
                                    set loop-player to {loop.player}
                                    if loop-block is redstone_block:
                                        add jump boost to loop-player for 1 second
 
Status
Not open for further replies.