How to teleport player to coordinates in variable saved like this:
Code:
command /rtp:
permission: rtp.use
permission message: &7[&6&lCoud&e&lMC&7] &8No permission!
trigger:
message "&7[&6&lCoud&e&lMC&7] Teleporting..."
set {%player%::rtpx} to random number between 0 and 20000
message "DEBUG: X = %{%player%::rtpx}% "
set {%player%::rtpy} to random number between 60 and 80
message "DEBUG: Y = %{%player%::rtpy}% "
set {%player%::rtpz} to random number between 0 and 20000
message "DEBUG: Z = %{%player%::rtpz}% "
execute console command "effect %player% resistance 10 255"
teleport player to %{%player%::rtpx}%, %{%player%::rtpx}%, %{%player%::rtpz}%