Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function updateScore(p: player):
- {_u} = {_p}'s uuid
- set line 14 of {_p}'s scoreboard to "Kills: %{kill counter::%{_u}%::kills_total} otherwise 0%"
- set line 13 of {_p}'s scoreboard to "Deaths: %{kill counter::%{_u}%::deaths_total} otherwise 0%"
- set line 12 of {_p}'s scoreboard to "K/D: %{kill counter::%{_u}%::kills_total} otherwise 0 / {kill counter::%{_u}%::deaths_total} otherwise 0%"
- set line 10 of {_p}'s scoreboard to "Cur Streak: %{kill counter::%{_u}%::kills_session} otherwise 0%"
- set line 9 of {_p}'s scoreboard to "PB Streak: %{kill counter::%{_u}%::kills_total} otherwise 0%"
- on join:
- set title of player's scoreboard to "KillKit PVP"
- set line 1 of player's scoreboard to "killkitpvp.minehut.com"
- set line 2 of player's scoreboard to ""
- set line 15 of player's scoreboard to ""
- set line 14 of player's scoreboard to "Kills: %{kill counter::%uuid of player%::kills_total} otherwise 0%"
- set line 13 of player's scoreboard to "Deaths: %{kill counter::%uuid of player%::deaths_total} otherwise 0%"
- set line 12 of player's scoreboard to "K/D: %{kill counter::%uuid of player%::kills_total} otherwise 0 / {kill counter::%uuid of player%::deaths_total} otherwise 0%"
- set line 11 of player's scoreboard to ""
- set line 10 of player's scoreboard to "Cur Streak: %{kill counter::%uuid of player%::kills_session} otherwise 0%"
- set line 9 of player's scoreboard to "PB Streak: %{kill counter::%uuid of player%::kills_total} otherwise 0%"
- on death of player:
- attacker is a player
- broadcast "%attacker's name% killed someone lol"
- add 1 to {kill counter::%uuid of player%::deaths_total}
- set {kill counter::%uuid of player%::kills_session} to 0
- add 1 to {kill counter::%uuid of attacker%::kills_total}
- add 1 to {kill counter::%uuid of attacker%::kills_session}
- if {kill counter::%uuid of attacker%::kills_session} > {kill counter::%uuid of attacker%::kills_session_max}:
- set {kill counter::%uuid of attacker%::kills_session_max} to {kill counter::%uuid of attacker%::kills_session}
- updateScore(attacker)
- updateScore(player)
Advertisement
Add Comment
Please, Sign In to add comment