Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/loc
- command /loc:
- aliases: /location
- trigger:
- {SI::on::%player%} is true
- send "{@PS} {@A} {@N}Player locations:"
- loop all players:
- {si::on::%loop-player%} is not set
- loop-player's world is {UHC::World::Playing::Main}
- set {_c} to TeamColour(loop-player)
- set {_x} to floor(x-coordinate of loop-player)
- set {_z} to floor(z-coordinate of loop-player)
- loop split "x z" at " ":
- if {_%loop-value-2%} is greater than 100:
- if {_%loop-value-2%} is less than 150:
- set {_c::%loop-value-2%} to "&e"
- else:
- set {_c::%loop-value-2%} to "&c"
- else if {_%loop-value-2%} is less than -100:
- if {_%loop-value-2%} is greater than -150:
- set {_c::%loop-value-2%} to "&e"
- else:
- set {_c::%loop-value-2%} to "&c"
- else:
- set {_c::%loop-value-2%} to "&a"
- send "{@PS} {@A} &8- %{_c}%%loop-player%&8: ({@C}%{_c::x}%%{_x}%&8,{@C}%{_c::z}%%{_z}%&8)"
Advertisement
Add Comment
Please, Sign In to add comment