Randall123459

Killboard

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