So I have made this skript that teleports a player to a random level when they right click on a diamond block, but it only works with players who are op, and normal players cannot right click the diamond blocks.
on rightclick on diamond block:
if player is holding air:
set {map} to random element of {maps::*}
send "&b&lB&7&lv&a&l2 &8| &eYour map is: &6&l%{map}%&e!"
teleport player to {pos::%{map}%}
ty
on rightclick on diamond block:
if player is holding air:
set {map} to random element of {maps::*}
send "&b&lB&7&lv&a&l2 &8| &eYour map is: &6&l%{map}%&e!"
teleport player to {pos::%{map}%}
ty