Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {deathbans} =
- command /deathbans <text>:
- permission: skript.op
- trigger:
- if arg 1 is "on":
- set {deathbans} to true
- broadcast "&8[&bAeria&cUHC&8] &eDeathbans are now &aenabled"
- if arg 1 is "off":
- set {deathbans} to false
- broadcast "&8[&bAeria&cUHC&8] &eDeathbans are now &cdisabled"
- on death of player:
- if player has permission "deathbans.bypass":
- if {deathbans} is true:
- execute console command "/scoreboard players reset %player%"
- send "&5Thanks for playing! You will be put into spec mode in 10 seconds" to player
- wait 10 second
- execute console command "/spec on %player%"
- else:
- if {deathbans} is true:
- execute console command "/scoreboard players reset %player%"
- execute console command "/bukkit:whitelist remove %player%"
- send "&5Thanks for playing! You will be auto-kicked in 30 seconds" to player
- wait 30 second
- kick player because "Thanks for playing! :D"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement