familychicken

Untitled

Feb 13th, 2022 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. every 10 seconds:
  2. loop all players:
  3. set {coinranking::%loop-player%} to {%loop-player%.coin}
  4. execute console command "/ranking"
  5.  
  6.  
  7. function ranking():
  8. loop {coinranking::*}:
  9. set {_cr::%loop-index%} to max(loop-value)
  10. loop 10 times:
  11. loop {_cr::*}:
  12. {_cr::%loop-index%} is max({_cr::*})
  13. add 1 to {_l}
  14. set {_ca::%loop-index%} to max({_cr::*})
  15. set {rankcoin::%{_l}%} to "&6%{_l}%. &7%loop-index% &7%nnconsole({coinranking::%loop-index%}, 3)% &ecoins"
  16. delete {_cr::%loop-index%}
  17.  
  18. command /ranking:
  19. trigger:
  20. set {_holograma} to new hologram at {holocation}
  21. unregister holograms all of the holograms
  22. ranking()
  23. set {_hologram} to new hologram at {holocation}
  24. add item gold block to hologram {_hologram}
  25. add text "&e&l所持コインランキング" to hologram {_hologram}
  26. loop 10 times:
  27. add text "%{rankcoin::%loop-number%}%" to hologram {_hologram}
  28.  
  29.  
  30.  
  31. command /holocation:
  32. permission: skript.admin
  33. trigger:
  34. set {holocation} to player's location
  35. message "%{holocation}%"
Advertisement
Add Comment
Please, Sign In to add comment