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