Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment