on load: set {symbol} to " ---> " function createTop(t: string, i: integer) :: strings: set {_offlinePlayers::*} to all offline players loop {_offlinePlayers::*}: if {%{_t}%::%loop-value%} is set: add {%{_t}%::%loop-value%} to {_top::*} add loop-value to {_players::*} loop {_i} times: set {_max} to max({_top::*}) loop {_top::*}: if loop-value-2 = {_max}: set {_index} to loop-index delete {_top::%{_index}%} add "%{_players::%{_index}%}%%{symbol}%%{_max}%" to {_return::*} delete {_players::%{_index}%} return {_return::*} function getTop(t: string, list: strings) :: strings: loop {_list::*}: set {_split::*} to loop-value split at {symbol} add {_split::1} to {_players::*} add {_split::2} to {_top::*} if {_t} = "players": return {_players::*} else: return {_top::*} #Created by: LuckyPotato v1.0 17.05.2019