Advertisement
Captainkoala72

Killboard

Mar 14th, 2015
4,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. PvE: &6PvE
  3. P: &8[<green>Killboard&8]&7
  4. Perm: killboard.admin
  5.  
  6. command /killboard <text>:
  7. permission: {@Perm}
  8. usage: /killboard <On:Off:Reset>
  9. aliases: /kb
  10. trigger:
  11. if arg-1 is "on":
  12. command "/scoreboard objectives add Kills playerKillCount"
  13. wait 1 tick
  14. command "/scoreboard objectives setdisplay sidebar Kills"
  15. broadcast "{@P} Killboard is now enabled!"
  16. if arg-1 is "off":
  17. command "/scoreboard objectives remove Kills"
  18. wait 1 tick
  19. command "/scoreboard objectives setdisplay sidebar"
  20. broadcast "{@P} Killboard is now disabled!"
  21. if arg-1 is "reset":
  22. command "/scoreboard objectives remove Kills"
  23. wait 1 tick
  24. command "/scoreboard objectives setdisplay sidebar"
  25. wait 10 ticks
  26. command "/scoreboard objectives add Kills playerKillCount"
  27. wait 1 tick
  28. command "/scoreboard objectives setdisplay sidebar Kills"
  29. broadcast "{@P} Killboard has been reset!"
  30.  
  31.  
  32.  
  33. on death:
  34. victim is a player:
  35. attacker is a player:
  36. stop trigger
  37. else:
  38. execute console command "scoreboard players add &6&lPvE Kills 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement