#randomtp user not at lobby

1 messages · Page 1 of 1 (latest)

pliant condor
#

Set world to tp

dusky badge
#
    permission: op
    trigger:
        if size of all players is greater than 1:
            set {_randomPlayer} to a random element out of all players where [input != player and input's world is "world" or input's world is "world_the_end" or input's world is "world_nether"]
            if {_randomPlayer} is set:
                set {_seconds} to 5
                loop {_seconds} times:
                    send action bar "&eDịch chuyển trong %{_seconds}% giây..." to player
                    play sound "entity.player.levelup" with volume 1 to the player
                    wait 1 second
                    subtract 1 from {_seconds}
                teleport player to {_randomPlayer}'s location
                send "&aBạn đã được dịch chuyển đến người chơi ngẫu nhiên: %{_randomPlayer}%"
#

set {_randomPlayer} to a random element out of all players where [input != player and input's world is "world" or input's world is "world_the_end" or input's world is "world_nether"]

it doesnt work bro

#

do you have any example

pliant condor
#

no spoonfeeding

pliant condor
dusky badge
#
    permission: op
    trigger:
        if size of all players is greater than 1:
            if arg-1 is not set:
                send "&cBạn phải nhập tên của thế giới để dịch chuyển! (world, world_the_end, world_nether)"
                stop
            if argument-1 is "world" or argument-1 is "world_the_end" or argument-1 is "world_nether":
                set {_randomPlayer} to a random element out of all players where [input != player and world of input is arg-1]
                if {_randomPlayer} is set:
                    set {_seconds} to 5
                    loop {_seconds} times:
                        send action bar "&eDịch chuyển trong %{_seconds}% giây..." to player
                        play sound "entity.player.levelup" with volume 1 to the player
                        wait 1 second
                        subtract 1 from {_seconds}
                    teleport player to {_randomPlayer}'s location
                    send "&aBạn đã được dịch chuyển đến người chơi ngẫu nhiên trong thế giới %{arg-1}%: %{_randomPlayer}%"

still not work sir
@pliant condor can you fix that for me

pliant condor
#

cant do it rn srry