Advertisement
Randall123459

KillBoard

Apr 30th, 2015
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. options:
  2. p: &8[&cIgniteUHC&8]
  3.  
  4.  
  5. command /spawnboard <text>:
  6. permission: skript.op
  7. trigger:
  8. if arg is "on" or "true" or "enable":
  9. set {spawnboard} to true
  10. message "{@p} &aYou have enabled the spawn board"
  11. command "/scoreboard objectives remove SpawnBoard"
  12. command "/scoreboard objectives add SpawnBoard dummy {@p}"
  13. command "/scoreboard objectives add &aKills SpawnBoard playerKillCount"
  14. command "/scoreboard players set &b&lOnline SpawnBoard %amount of players%"
  15. command "/scoreboard objectives setdisplay sidebar SpawnBoard"
  16.  
  17. if arg is "off" or "false" or "disable":
  18. set {spawnboard} to false
  19. message "{@p} &bYou have disabled the spawn board"
  20. command "/scoreboard objectives remove SpawnBoard"
  21.  
  22.  
  23. every second:
  24. {spawnboard} is true
  25. loop all players:
  26. command "/scoreboard players set &b&lOnline SpawnBoard %amount of players%"
  27.  
  28.  
  29. on death of player:
  30. console command "/scoreboard players reset %victim%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement