command /lobby:
trigger:
set {_x} to x-location of player
set {_y} to y-location of player
set {_z} to z-location of player
send "&5[&3&lLOBBY&5] &eZa 5 sekund zostaniesz przeteleportowany do lobby!"
loop 100 times:
wait 1 tick
set {_xx} to x-location of player
set {_yy} to y-location of player
set {_zz} to z-location of player
if {_zz} isn't {_z}:
send "&5[&3&lLOBBY&5] &cRuszyles sie! Teleportacja anulowana!"
stop
if {_yy} isn't {_y}:
send "&5[&3&lLOBBY&5] &cRuszyles sie! Teleportacja anulowana!"
stop
if {_xx} isn't {_x}:
send "&5[&3&lLOBBY&5] &cRuszyles sie! Teleportacja anulowana!"
stop
teleport player to {lobby.tp}
send "&5[&3&lLOBBY&5] &aZostales przeteleportowany do &clobby&a!"