Advertisement
nunonuno_riku

Untitled

Jul 24th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on first join:
  2. set {kills::%UUID of player%} to 0
  3. set {deaths::%UUID of player%} to 0
  4. set {kd::%UUID of player%} to 0
  5. on death:
  6. victim is a player
  7. add 1 to {deaths::%UUID of victim%}
  8. on death:
  9. victim is a player
  10. attacker is a player
  11. add 1 to {kills::%UUID of attacker%}
  12. every tick:
  13. loop all players:
  14. set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
  15. add 0 to {kills::%UUID of loop-player%}
  16. add 0 to {deaths::%UUID of loop-player%}
  17. command /playerstats [<offline player>]:
  18. aliases: /pstats
  19. usage: &c/playerstats <player>
  20. trigger:
  21. if arg-1 is set:
  22. send "&6================&4&lStats&6================"
  23. send "&4%arg-1%'s stats"
  24. send "&4Kills: &6%{kills::%UUID of arg-1%}%"
  25. send "&4Deaths: &6%{deaths::%UUID of arg-1%}%"
  26. send "&4K/D: &6%{kd::%UUID of arg-1%}%"
  27. send "&6================&4&lStats&6================"
  28. if arg-1 is not set:
  29. send "&6================&4&lStats&6================"
  30. send "&4%player%'s stats"
  31. send "&4Kills: &6%{kills::%UUID of player%}%"
  32. send "&4Deaths: &6%{deaths::%UUID of player%}%"
  33. send "&4K/D: &6%{kd::%UUID of player%}%"
  34. send "&6================&4&lStats&6================"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement