Untitled
raw download clone
TEXT
views 6
,
size 3074 b
command /x join <text>:
    Trigger:
        if {stats.%player%} is "ingame":
            send "&CALREADY IN GAME" to player
        else:
            if arg-1 is "test":
                if {now.game.test} is not set:
                    if {count.test} is not set:
                        set {game.%player%} to "test"
                        set {stats.%player%} to "ingame"
                        teleport player to location at -9, 75, -165 in world "world"
                        set {count.test} to 1
                        send "&AIN GAME <%{count.test}%/5>" to player
                    else:
                        if {count.test} is 5:
                            send "&CFULL NOW please wait, OK?" to player
                            stop
                        if {count.test} is 4:
                            set {game.%player%} to "test"
                            set {stats.%player%} to "ingame"
                            teleport player to location at -9, 75, -165 in world "world"
                            send "&AIN THE BEGINNING" to player
                            set {now.game.test} to true
                            set {count.test} to 5
                            send "&AIN GAME <%{count.test}%/5>" to player
                            stop
                        else:
                            set {game.%player%} to "test"
                            set {stats.%player%} to "ingame"
                            teleport player to location at -9, 75, -165 in world "world"
                            set {count.test} to {count.test}+1
                            send "&AIN GAME <%{count.test}%/5>" to player
                            stop
                        stop 
                else:
                    send "&CGAME STARTED" to player
            else:
                send "&4ERROR" to player


command /xstart <text>:
    Permission: server.console
    Executable by: console
    Trigger:
        if arg 1 is "test":
            loop all-player
                send player
        else:
            send "&4ERROR // YOU TYPE A WRONG TEXT"

command /xleave:
    Trigger:
        if {game.%player%} is "test":
            set {count.test} to {count.test}-1
            send "&cLEAVE <%{count.test}%/5>" to player
            clear {stats.%player%}
            clear {game.%player%}
            teleport player to location at -9, 75, -180 in world "world"
            if {count.test} is 4:
                clear {now.game.test}
        else:
            send "&cYOU NO GAME" to player
            stop

command /xdebug:
    Trigger:
        set {count.test} to {count.test}+1
        send "&AIT'S <%{count.test}%/5>" to player

command /xclear:
    Trigger:
        clear {count.test}
        clear {stats.%player%}
        clear {game.%player%}
        clear {stats.%player%}
        clear {now.game.test}

command /xclear2:
    Trigger:
        clear {stats.%player%}
        clear {game.%player%}
        clear {stats.%player%}
close fullscreen
Login or Register to edit or fork this paste. It's free.