Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 10 seconds:
- loop all players:
- set {coinranking::%loop-player%} to {%loop-player%.coin}
- execute console command "/ranking"
- function ranking():
- loop {coinranking::*}:
- set {_cr::%loop-index%} to max(loop-value)
- loop 10 times:
- loop {_cr::*}:
- {_cr::%loop-index%} is max({_cr::*})
- add 1 to {_l}
- set {_ca::%loop-index%} to max({_cr::*})
- set {rankcoin::%{_l}%} to "&6%{_l}%. &7%loop-index% &7%nnconsole({coinranking::%loop-index%}, 3)% &ecoins"
- delete {_cr::%loop-index%}
- command /ranking:
- trigger:
- set {_holograma} to new hologram at {holocation}
- unregister holograms all of the holograms
- ranking()
- set {_hologram} to new hologram at {holocation}
- add item gold block to hologram {_hologram}
- add text "&e&l所持コインランキング" to hologram {_hologram}
- loop 10 times:
- add text "%{rankcoin::%loop-number%}%" to hologram {_hologram}
- command /holocation:
- permission: skript.admin
- trigger:
- set {holocation} to player's location
- message "%{holocation}%"
Advertisement
Add Comment
Please, Sign In to add comment