Advertisement
fleft17

Untitled

Jul 5th, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. options:
  2. P: &7[&4Killswitch&7]&r
  3. IS: Invalid syntax :/
  4.  
  5. command /killswitch [<text>]:
  6. permission: skript.killswitch
  7. usage: /killswitch on|off|toggle|
  8. trigger:
  9. arg is "on":
  10. set {KillSwitch} to true
  11. broadcast "{@P} Enabled by %command sender%!"
  12. arg is "off":
  13. set {KillSwitch} to false
  14. broadcast "{@P} Disabled by %command sender%!"
  15. arg is "toggle":
  16. if {KillSwitch} is true:
  17. command sender command "/killswitch off"
  18. stop trigger
  19. if {KillSwitch} is false:
  20. command sender command "/killswitch on"
  21. stop trigger
  22.  
  23. arg is not "on" or "off" or "toggle":
  24. message "{@P} {@IS}"
  25. message "{@P} /killswitch on | off | toggle"
  26. if {KillSwitch} is true:
  27. message "{@P} Killswitch is currently enabled!"
  28. if {KillSwitch} is false:
  29. message "{@P} Killswitch is currently disabled!"
  30. if {KillSwitch} is not set:
  31. message "{@P} Killswitch is currently not set!"
  32. arg is not set:
  33. message "{@P} {@IS}"
  34. message "{@P} /killswitch on | off | toggle"
  35. if {KillSwitch} is true:
  36. message "{@P} Killswitch is currently enabled!"
  37. if {KillSwitch} is false:
  38. message "{@P} Killswitch is currently disabled!"
  39. if {KillSwitch} is not set:
  40. message "{@P} Killswitch is currently not set!"
  41.  
  42.  
  43.  
  44.  
  45.  
  46. on death of player:
  47. {KillSwitch} is true:
  48. clear drops
  49. set {_victim} to the victim's inventory
  50. set the attacker's inventory to {_victim}
  51. set {ks.helm.%victim%} to the helmet of the victim
  52. set {ks.chest.%victim%} to the chestplate of the victim
  53. set {ks.legs.%victim%} to the leggings of the victim
  54. set {ks.boots.%victim%} to the boots of the victim
  55. set the helmet of the attacker to {ks.helm.%victim%}
  56. set the chestplate of the attacker to {ks.chest.%victim%}
  57. set the leggings of the attacker to {ks.legs.%victim%}
  58. set the boots of the attacker to {ks.boots.%victim%}
  59. wait 1 second
  60. delete {ks.helm.%victim%}
  61. delete {ks.chest.%victim%}
  62. delete {ks.legs.%victim%}
  63. delete {ks.boots.%victim%}
  64. message "{@P} You switched inventories with %victim%!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement