Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /toplist:
- trigger:
- set {Kills::Mirre} to 12
- set {Kills::Bla} to 10
- set {Kills::What} to 5
- #Toplist code
- #@index will be replaced with the loop-indexes of {Kills::*}
- #@value will be replaced with the score/number
- set {_Toplist::*} to sorted {Kills::*} from highest to lowest with output "@index has killed a total of @value"
- message "Top Kills:"
- loop {_Toplist::*}:
- message "%loop-index%: %loop-value%"
- #The Chat will look like:
- #Top Kills:
- #1: Mirre has killed a total of 12
- #2: Bla has killed a total of 10
- #3: What has killed a total of 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement