Solved Skript Error

  • 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 31, 2019
24
0
1
43
I keep getting this error on the command "/player (mode)"

Skript version: 2.2-dev36
Server version: 1.8.8 craftbukkit

Code
-----------------------------------
command /play [<text>]:
executable by: players
trigger:
if arg-1 is set:
if arg-1 is "solo_normal" or "solo_insane":
if size of {arena.amounts} is not 0:
send "&aLooking for a game!"
wait 1 second
if arg-1 is "solo_normal":
loop {sw.arena::*}:
if {sw.arena.%loop-value%.mode} is "SOLO_NORMAL":
if {sw.arena.event.%loop-value%} is "{@Waiting}" or "{@Starting}":
if {sw.arena.%loop-value%.playing} is between 0 and {maxplayerssolo}:
if {sw.playing.%player%} is false:
send "&aFound a server running &bSOLO:NORMAL!&a Sending you to %loop-value%!"
set {sw.playing.%player%} to true
add 1 to {sw.arena.%loop-value%.playing}
add player to {sw.arena.%loop-value%.players.alive::*}
set {sw.player.%loop-value%.number} to "%player%"
teleport player to {sw.arena.%loop-value%.spawn.num.%{sw.arena.%loop-value%.cage.count}%}
stop
else:
make player execute "/leave"
wait 0.1 seconds
make player execute "/play solo_normal"
stop
else:
send "&aThere are no availible arenas at the moment!"
stop
else:
send "{@gameactive}"
stop

[doublepost=1608326937,1608326794][/doublepost]Code
------------------------

https://pastebin.com/8gqswXDM
 

Attachments

  • error.PNG
    error.PNG
    236.3 KB · Views: 169
Status
Not open for further replies.