lNockl

Untitled

Jun 2nd, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. on join:
  2. set {kills.%player%} to 0
  3.  
  4. command /killscoreboard [<text>]:
  5. permission: scoreboard.admin
  6. trigger:
  7. if arg 1 is not set:
  8. send "&e/killscoreboard on"
  9. send "&e/killscoreboard off"
  10. if arg 1 is "on":
  11. wipe player's sidebar
  12. set name of sidebar of player to "&e&lUHC"
  13. set score "&b&lKills:" in sidebar of player to {kills.%player%}
  14. if arg 1 is "off":
  15. wipe player's sidebar
  16. set {kills.%player%} to 0
  17.  
  18. on death of a player:
  19. if attacker is a player:
  20. add 1 to {kills.%attacker%}
  21. wipe attacker's sidebar
  22. set name of sidebar of attacker to "&eUHC"
  23. set score "&a" in sidebar of attacker to 1
  24. set score "&b&lKills:" in sidebar of attacker to {kills.%player%}
Advertisement
Add Comment
Please, Sign In to add comment