Organized

Location [SK]

Aug 31st, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #/loc
  2.  
  3. command /loc:
  4. aliases: /location
  5. trigger:
  6. {SI::on::%player%} is true
  7. send "{@PS} {@A} {@N}Player locations:"
  8. loop all players:
  9. {si::on::%loop-player%} is not set
  10. loop-player's world is {UHC::World::Playing::Main}
  11. set {_c} to TeamColour(loop-player)
  12. set {_x} to floor(x-coordinate of loop-player)
  13. set {_z} to floor(z-coordinate of loop-player)
  14. loop split "x z" at " ":
  15. if {_%loop-value-2%} is greater than 100:
  16. if {_%loop-value-2%} is less than 150:
  17. set {_c::%loop-value-2%} to "&e"
  18. else:
  19. set {_c::%loop-value-2%} to "&c"
  20. else if {_%loop-value-2%} is less than -100:
  21. if {_%loop-value-2%} is greater than -150:
  22. set {_c::%loop-value-2%} to "&e"
  23. else:
  24. set {_c::%loop-value-2%} to "&c"
  25. else:
  26. set {_c::%loop-value-2%} to "&a"
  27. 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