on death of player: attacker is player add 1 to {stats.kill::%attacker%} command /top []: trigger: set {_strony} to rounded up (size of {stats.kill::*} / 54) if arg is between 1 and {_strony}: open chest with 6 rows named "&6Top kille &8(&3%arg%&8)" to player wait 2 tick loop {stats.kill::*}: set {_lista::%loop-index%} to loop-value set {_num} to size of {_lista::*} set {_max} to arg * 53 #54 slot -> przejście na kolejną stronę. set {_min} to {_max} - 52 loop {_max} times: loop {_lista::*}: if {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index if loop-value is larger than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index delete {_lista::%{_n.%loop-number%}%} set {_i} to 0 if (arg + 1) is larger than {_strony}: set player's current inventory's slot 53 to nether star named "&6Koniec" with lore "&aNie ma juz wiecej stron." else: set player's current inventory's slot 53 to nether star named "&6Nastepna strona." with lore "&6Przejdz na strone: &c%arg + 1%" loop {_max} times: loop-number is between {_min} and {_max} if loop-number <= {_num}: set player's current inventory's slot {_i} to paper named "&6Miejsce: &c&l%loop-number%" with lore "&aNazwa: &6%{_n.%loop-number%}%||&aPunkty: &6%{_v.%loop-number%}%" add 1 to {_i} stop send "&cBlad: &6Nikt jeszcze nikogo nie zabil." stop on inventory click: if "%inventory name of player's current inventory%" contains "&6Top kille ": if slot is smaller than 0: stop cancel event if player's current inventory's slot slot is nether star: if name of player's current inventory's slot slot is "&6Nastepna strona.": set {_strona} to "%uncoloured inventory name of player's current inventory%" replace all "Top kille (" in {_strona} with "" replace all ")" in {_strona} with "" set {_strona} to {_strona} parsed as integer close player's inventory wait 2 tick execute player command "top %{_strona} + 1%" stop command /fakekills: trigger: loop 150 times: set {stats.kill::wadawd%random integer between 0 and 1000%} to random integer between 0 and 100