Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /statystyki [<text>]:
- aliases: staty
- trigger:
- if arg 1 is not set:
- send "&3&m===== &a&lSkyBlock Statystyki &3&m====="
- send "&3/staty stone - &cTOP 5. Wykopanego &8stone/cobblestone &cna serwerze!"
- send "&3/staty czas - &cTOP 5. &8Czasu &cgranego na serwerze!"
- send "&3/staty diamenty - &cTOP 5. Zdobytych &8diamentow &cna serwerze!"
- send "&3&m===== &a&lSkyBlock Statystyki &3&m====="
- stop
- if arg 1 is "stone":
- set {_lista::*} to {Statystyki::gracze::stoneCobblestone::*} sorted from highest to lowest
- #send "&3&m===== &a&lStatystyki stone &3&m====="
- set {_index} to 0
- loop {_lista::*}:
- add 1 to {_index}
- loop {Statystyki::gracze::stoneCobblestone::*}:
- if "%loop-value-2%" is "%loop-value-1%":
- set {_gracz} to "%loop-index-2%"
- if {_index} is 6:
- exit loop
- send "&6%{_index}%. &8%{_gracz}% &6%loop-value%"
- if {Statystyki::gracz::%player%::stoneCobblestone} is not set:
- set {Statystyki::gracz::%player%::stoneCobblestone} to 0
- send "&6Wykopanego Cobblestona i Stona: &8%{Statystyki::gracz::%player%::stoneCobblestone}%"
- #send "&3&m===== &a&lKoniec statystyk stone &3&m====="
- if arg 1 is "czas":
- set {_lista::*} to {Statystyki::gracze::online::%player%} sorted from highest to lowest
- #send "&3&m===== &a&lStatystyki czasu &3&m====="
- set {_index} to 0
- loop {_lista::*}:
- add 1 to {_index}
- loop {Statystyki::gracze::online::*}:
- if "%loop-value-2%" is "%loop-value-1%":
- set {_gracz} to "%loop-index-2%"
- if {_index} is 6:
- exit loop
- send "&6%{_index}%. &8%{_gracz}% &6%loop-value%"
- send "&6Czas online: &8%{Statystyki::gracz::%player%::online}%"
- #send "&3&m===== &a&lKoniec statystyk czasu &3&m====="
- if arg 1 is "diamenty" or "diaxy":
- set {_lista::*} to {Statystyki::gracze::diamenty::*} sorted from highest to lowest
- set {_index} to 0
- loop {_lista::*}:
- add 1 to {_index}
- loop {Statystyki::gracze::diamenty::*}:
- if "%loop-value-2%" is "%loop-value-1%":
- set {_gracz} to "%loop-index-2%"
- if {_index} is 6:
- exit loop
- send "&6%{_index}%. &8%{_gracz}% &6%loop-value%"
- if {Statystyki::gracz::%player%::diamenty} is not set:
- set {Statystyki::gracz::%player%::diamenty} to 0
- send "&6Wykopanych diamentow: &8%{Statystyki::gracz::%player%::diamenty}%"
- #send "&3&m===== &a&lKoniec statystyk diamentow &3&m====="
- #send "&3&m===== &a&lTwoje statystyki &3&m====="
- #if {Statystyki::gracz::%player%::online} is not set:
- # set {Statystyki::gracz::%player%::online} to 0
- #send "&3&m===== &a&lKoniec statystyk &3&m====="
- #
- on join:
- set {Statystyki::gracz::%player%::czasWejsca} to now
- set {_is} to false
- loop {Statystyki::gracze::lista::*}:
- if "%loop-value%" is "%player%":
- set {_is} to true
- exit loop
- if {_is} is false:
- add player to {Statystyki::gracze::lista::*}
- wait 2 seconds
- if {Statystyki::gracz::%player%::czasWejsca} is not set:
- set {_dodaj} to difference between now and {Statystyki::gracz::%player%::czasWejsca}
- add {_dodaj} to {Statystyki::gracz::%player%::online}
- #
- on quit:
- set {_dodaj} to difference between now and {Statystyki::gracz::%player%::czasWejsca}
- add {_dodaj} to {Statystyki::gracz::%player%::online}
- set {Statystyki::gracze::online::%player%} to {Statystyki::gracz::%player%::online}
- delete {Statystyki::gracz::%player%::czasWejsca}
- #
- on kick:
- set {_dodaj} to difference between now and {Statystyki::gracz::%player%::czasWejsca}
- add {_dodaj} to {Statystyki::gracz::%player%::online}
- set {Statystyki::gracze::online::%player%} to {Statystyki::gracz::%player%::online}
- delete {Statystyki::gracz::%player%::czasWejsca}
- #
Advertisement
Add Comment
Please, Sign In to add comment