Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- add 1 to {deaths.%victim%}
- if attacker is player:
- add 1 to {kills.%attacker%}
- else if {damager.%victim%} is set:
- add 1 to {kills.%{damager.%victim%}%}
- on death of monster:
- entity is not player:
- add 1 to {mobkills.%player%}
- on damage of player:
- attacker is player:
- set {damager.%victim%} to "%attacker%"
- wait 7 seconds
- delete {damager.%victim%}
- on join:
- set {logintime.%player%} to now
- wait 2 ticks
- sb(player)
- on disconnect:
- delete stylish scoreboard "T-%player%"
- if {onlinetime.%player%} is not set:
- if difference between {logintime.%player%} and now is bigger than 10 minutes:
- set {onlinetime.%player%} to date {logintime.%player%} as unix - date now as unix
- else:
- add floor((date now as unix - date {logintime.%player%} as unix)/60) to {onlinetime.%player%}
- every 1 minute:
- loop all players:
- {onlinetime.%loop-player%} is set:
- add floor((date now as unix - date {logintime.%loop-player%} as unix)/60) to {onlinetime.%loop-player%}
- set {logintime.%loop-player%} to now
- every 5 seconds:
- loop all players:
- sb(loop-player)
- function sb(p: Player):
- if {onlinetime.%{_p}%} is not set:
- set {_onlineT} to 0
- else:
- set {_t} to floor({onlinetime.%{_p}%})
- set {_m} to {_t} mod 60
- set {_t} to floor({_t}/60)
- set {_h} to {_t} mod 24
- set {_t} to floor({_t}/60)
- set {_d} to {_t}
- if {_m} is not 0:
- set {_m} to "%{_m}%m "
- else:
- set {_m} to ""
- if {_h} is not 0:
- set {_h} to "%{_h}%h "
- else:
- set {_h} to ""
- if {_d} is not 0:
- set {_d} to "%{_d}%d "
- else:
- set {_d} to ""
- set {_onlineT} to "%{_d}%%{_h}%%{_m}%"
- if {mobkills.%{_p}%} is not set:
- set {_mobs} to 0
- else:
- set {_mobs} to {mobkills.%{_p}%}
- if {kills.%{_p}%} is not set:
- set {_kills} to 0
- else:
- set {_kills} to {kills.%{_p}%}
- if {deaths.%{_p}%} is not set:
- set {_deaths} to 0
- else:
- set {_deaths} to {deaths.%{_p}%}
- delete stylish scoreboard "T-%{_p}%"
- if stylish scoreboard "T-%{_p}%" does not exist:
- create new stylish scoreboard named "T-%{_p}%"
- create a new id based score "%{_p}%Slot8" with text "&8&m&8&l »&m &m &8&l«" slot 9 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot7" with text " &aNick: &7%{_p}%" slot 8 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot6" with text " &aStan konta: &7%{_p}'s balance%" slot 7 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot5" with text " &aCzas online: &7%{_onlineT}%" slot 6 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot4" with text " " slot 5 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot3" with text " &8⋙&2Zabójstwa: &7%{_kills}%" slot 4 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot2" with text " &8⋙&2Zgony: &7%{_deaths}%" slot 3 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot1" with text " &8⋙&2Zabite moby: &7%{_mobs}%" slot 2 for stylish scoreboard "T-%{_p}%"
- create a new id based score "%{_p}%Slot9" with text " &8&m&8&l»&m &m &8&l«" slot 1 for stylish scoreboard "T-%{_p}%"
- set title of stylish scoreboard "T-%{_p}%" to "&a&l-= &2&lFreeBuild &a&l=-"
- set stylish scoreboard of {_p} to "T-%{_p}%"
Advertisement
Add Comment
Please, Sign In to add comment