command /sktop:
trigger:
player has permission "top.use":
set {_y1} to y-coordinate of player's location
set {_x} to x-coordinate of player's location
set {_y} to y-coordinate of player's location
set {_z} to z-coordinate of player's location
add 2 to {_y}
loop 800 times:
block at location at ({_x}, {_y}, {_z}) isn't air:
add 1 to {_y}
else:
add 1 to {_y}
block at location at ({_x}, {_y}, {_z}) is air:
remove 1 from {_y}
teleport player at location at ({_x}, {_y}, {_z})
set {_y2} to y-coordinate of player's location
send "&aVous avez été téléporté %{_y2}-{_y1}% blocs plus haut."
stop
else:
send "&cVous n'avez pas accès à cette commande."
Remplace top.use par ta permission