you need to indent
command /server <text>:
description: Go To a server
permission: changeservers
executable by: players
trigger:
if arg 1 is "Lobby":
execute console command "/mv tp %player% ul_Lobby"
else if arg 1 is "KitPVP":
execute console command "/mv tp %player% ul_KitPVP"
else:
message "There is no world named arg 1"
Why do people use "skript" as a verb? Why do they use "skripter" as an adjective, or if it was like an ocupation or something. Why do people call scripts "skripts"? They are advertised everywhere as scripts.
This is actually in vanilla, just use the teleport function. Here's an example:
command /world [<text>]:
trigger:
teleport player to location(0, 255, 0, (arg parsed as world))
why use 2 seconds?
also, you should do something like this for the command:
command /playtime [<offlineplayer>]:
trigger:
set {_p} to arg ? player
set {_u} to {_p}'s uuid
send "&6&lPLAYTIME&7 %{_p}%'s playtime is %{playtime::%{_u}%} ? 0 seconds%."
here's a non bad version of this
every second:
loop all players:
add 1 second to {playtime::%loop-player's uuid%}
function time(t: text) :: text:
set {_n} to {_t}
replace all " seconds" and " second" with "s" in {_n}
replace all " minutes" and " minute" with "m" in {_n}
replace all " hours" and " hour" with "h" in {_n}
replace all " days" and " day" with "d" in {_n}
replace all " and " with " " in {_n}
return {_n}
command /playtime [<offlineplayer>]:
trigger:
set {_p} to arg 1 ? player
set {_u} to {_p}'s uuid
if {playtime::%{_u}%} is not set:
send "&cThat user is not registered."
else:
set {_time} to time("%{playtime::%{_u}%}%")
send ""
send " &3%{_p}'s playtime: &7%{_time}%"
send ""