command /spawn:
trigger:
{spawn} is set:
set {_posx} to x-location of player
set {_posz} to z-location of player
set {_posy} to y-location of player
set {_time} to {@time}
apply nausea to player for 3 minutes
send "&fmy&4game &2-> &6Zostaniesz przeniesiony na spawn za &4%{_time}%s"
wait 1 second
loop {@time} times:
difference between x-location of player and {_posx} is bigger than 0.5:
send "&fmy&4game &2-> &6Teleportacja przerwana."
remove nausea from the player
stop
difference between z-location of player and {_posz} is bigger than 0.5:
send "&fmy&4game &2-> &6Teleportacja przerwana."
remove nausea from the player
stop
difference between y-location of player and {_posy} is bigger than 0.5:
send "&fmy&4game &2-> &6Teleportacja przerwana."
remove nausea from the player
stop
add -1 to {_time}
{_time} is 0:
teleport player to {spawn}
remove nausea from the player
send "&fmy&4game &2-> &6Wkoncu jestes juz na spawnie !"
stop
send "&fmy&4game &2-> &6Teleportacja nastapi za &4%{_time}%s"
wait 1 second
stop
send "&fmy&4game &2-> &6Musisz najpierw ustawic spawna !"
on first login:
wait 1 tick
teleport player to {spawn}
on respawn:
wait 1 tick
teleport player to {spawn}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}