Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &d[&e&l&oInsomnia&d]&f
- command /deathkick [<text>]:
- permission: skript.op
- trigger:
- if arg 1 is not set:
- message "{@P} /deathkick [on|off]"
- if arg 1 is "on" or "enable":
- set {DeathKick} to true
- broadcast "{@P} Death Kick Enabled"
- delete {DeathKick::*}
- else if arg 1 is "off" or "disable":
- delete {DeathKick}
- broadcast "{@P} Death Kick Disabled"
- delete {DeathKick::*}
- on death of player:
- if {DeathKick} is true:
- player is not op:
- set {DeathKick::%player%} to true
- wait 1 tick
- broadcast "{@P} GG, &e%player%"
- message "{@P} Thanks for playing!" to the victim
- wait 60 seconds
- if {DeathKick::%player%} is false:
- command "/wl remove %player%"
- kick the player due to "{@P} GG, Thanks for playing!"
- set {DeathKick::%player%} to true
- on leave:
- if {DeathKick} is true:
- set {DeathKick::%player%} to true
- command "/wl remove %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement