Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &7[&4Killswitch&7]&r
- IS: Invalid syntax :/
- command /killswitch [<text>]:
- permission: skript.killswitch
- usage: /killswitch on|off|toggle|
- trigger:
- arg is "on":
- set {KillSwitch} to true
- broadcast "{@P} Enabled by %command sender%!"
- arg is "off":
- set {KillSwitch} to false
- broadcast "{@P} Disabled by %command sender%!"
- arg is "toggle":
- if {KillSwitch} is true:
- command sender command "/killswitch off"
- stop trigger
- if {KillSwitch} is false:
- command sender command "/killswitch on"
- stop trigger
- arg is not "on" or "off" or "toggle":
- message "{@P} {@IS}"
- message "{@P} /killswitch on | off | toggle"
- if {KillSwitch} is true:
- message "{@P} Killswitch is currently enabled!"
- if {KillSwitch} is false:
- message "{@P} Killswitch is currently disabled!"
- if {KillSwitch} is not set:
- message "{@P} Killswitch is currently not set!"
- arg is not set:
- message "{@P} {@IS}"
- message "{@P} /killswitch on | off | toggle"
- if {KillSwitch} is true:
- message "{@P} Killswitch is currently enabled!"
- if {KillSwitch} is false:
- message "{@P} Killswitch is currently disabled!"
- if {KillSwitch} is not set:
- message "{@P} Killswitch is currently not set!"
- on death of player:
- {KillSwitch} is true:
- clear drops
- set {_victim} to the victim's inventory
- set the attacker's inventory to {_victim}
- set {ks.helm.%victim%} to the helmet of the victim
- set {ks.chest.%victim%} to the chestplate of the victim
- set {ks.legs.%victim%} to the leggings of the victim
- set {ks.boots.%victim%} to the boots of the victim
- set the helmet of the attacker to {ks.helm.%victim%}
- set the chestplate of the attacker to {ks.chest.%victim%}
- set the leggings of the attacker to {ks.legs.%victim%}
- set the boots of the attacker to {ks.boots.%victim%}
- wait 1 second
- delete {ks.helm.%victim%}
- delete {ks.chest.%victim%}
- delete {ks.legs.%victim%}
- delete {ks.boots.%victim%}
- message "{@P} You switched inventories with %victim%!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement