Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. variables:
  2. {deathbans} =
  3.  
  4. command /deathbans <text>:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is "on":
  8. set {deathbans} to true
  9. broadcast "&8[&bAeria&cUHC&8] &eDeathbans are now &aenabled"
  10. if arg 1 is "off":
  11. set {deathbans} to false
  12. broadcast "&8[&bAeria&cUHC&8] &eDeathbans are now &cdisabled"
  13.  
  14. on death of player:
  15. if player has permission "deathbans.bypass":
  16. if {deathbans} is true:
  17. execute console command "/scoreboard players reset %player%"
  18. send "&5Thanks for playing! You will be put into spec mode in 10 seconds" to player
  19. wait 10 second
  20. execute console command "/spec on %player%"
  21. else:
  22. if {deathbans} is true:
  23. execute console command "/scoreboard players reset %player%"
  24. execute console command "/bukkit:whitelist remove %player%"
  25. send "&5Thanks for playing! You will be auto-kicked in 30 seconds" to player
  26. wait 30 second
  27. kick player because "Thanks for playing! :D"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement