kingofnuggets

why no work >:(

Mar 3rd, 2021
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. function updateScore(p: player):
  2. {_u} = {_p}'s uuid
  3. set line 14 of {_p}'s scoreboard to "Kills: %{kill counter::%{_u}%::kills_total} otherwise 0%"
  4. set line 13 of {_p}'s scoreboard to "Deaths: %{kill counter::%{_u}%::deaths_total} otherwise 0%"
  5. set line 12 of {_p}'s scoreboard to "K/D: %{kill counter::%{_u}%::kills_total} otherwise 0 / {kill counter::%{_u}%::deaths_total} otherwise 0%"
  6. set line 10 of {_p}'s scoreboard to "Cur Streak: %{kill counter::%{_u}%::kills_session} otherwise 0%"
  7. set line 9 of {_p}'s scoreboard to "PB Streak: %{kill counter::%{_u}%::kills_total} otherwise 0%"
  8.  
  9.  
  10. on join:
  11. set title of player's scoreboard to "KillKit PVP"
  12. set line 1 of player's scoreboard to "killkitpvp.minehut.com"
  13. set line 2 of player's scoreboard to ""
  14. set line 15 of player's scoreboard to ""
  15. set line 14 of player's scoreboard to "Kills: %{kill counter::%uuid of player%::kills_total} otherwise 0%"
  16. set line 13 of player's scoreboard to "Deaths: %{kill counter::%uuid of player%::deaths_total} otherwise 0%"
  17. 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%"
  18. set line 11 of player's scoreboard to ""
  19. set line 10 of player's scoreboard to "Cur Streak: %{kill counter::%uuid of player%::kills_session} otherwise 0%"
  20. set line 9 of player's scoreboard to "PB Streak: %{kill counter::%uuid of player%::kills_total} otherwise 0%"
  21.  
  22.  
  23.  
  24. on death of player:
  25. attacker is a player
  26. broadcast "%attacker's name% killed someone lol"
  27. add 1 to {kill counter::%uuid of player%::deaths_total}
  28. set {kill counter::%uuid of player%::kills_session} to 0
  29. add 1 to {kill counter::%uuid of attacker%::kills_total}
  30. add 1 to {kill counter::%uuid of attacker%::kills_session}
  31. if {kill counter::%uuid of attacker%::kills_session} > {kill counter::%uuid of attacker%::kills_session_max}:
  32. set {kill counter::%uuid of attacker%::kills_session_max} to {kill counter::%uuid of attacker%::kills_session}
  33. updateScore(attacker)
  34. updateScore(player)
Advertisement
Add Comment
Please, Sign In to add comment