fleft17

Untitled

Oct 2nd, 2014
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&a&oCreeper&2&oParanoia&8]
  4. CC: &f
  5. HC: &a
  6. Force: 1 #I'd recommend not going above 3.
  7.  
  8.  
  9. command /creeperparanoia [<text>]:
  10. trigger:
  11. if arg-1 is "on" or "enable":
  12. command sender has permission "skript.creeperparanoia":
  13. if {CreeperParanoia.Enabled} is not set:
  14. set {CreeperParanoia.Enabled} to true
  15. broadcast "{@P}{@CC} Enabled by {@HC}%command sender%!"
  16. else:
  17. message "{@P}{@CC} Already enabled!" to the command sender
  18. stop trigger
  19. else:
  20. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  21. message "{@P}{@CC} You don't have permission for that!" to the command sender
  22.  
  23. else if arg-1 is "off" or "disable":
  24. command sender has permission "skript.creeperparanoia":
  25. if {CreeperParanoia.Enabled} is true:
  26. delete {CreeperParanoia.Enabled}
  27. broadcast "{@P}{@CC} Disabled by {@HC}%command sender%!"
  28. else:
  29. message "{@P}{@CC} Already disabled!" to the command sender
  30. stop trigger
  31. else:
  32. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  33. message "{@P}{@CC} You don't have permission for that!" to the command sender
  34.  
  35.  
  36. else if arg-1 is "toggle" or "switch":
  37. if {CreeperParanoia.Enabled} is true:
  38. command sender command "/creeperparanoia off"
  39. stop trigger
  40. if {CreeperParanoia.Enabled} is not set:
  41. command sender command "/creeperparanoia on"
  42. stop trigger
  43.  
  44. else if arg-1 is "help" or "?" or "question" or "info" or "information":
  45. message "" to the command sender
  46. if command sender has permission "skript.creeperparanoia":
  47. message "{@P}{@CC} /creeperparanoia {@HC}on/off/toggle" to the command sender
  48. message "{@P}{@CC} Scenario by: {@HC}/u/flooft"
  49. if command sender is "Fleft":
  50. message "{@P}{@CC} Skript: {@HC}You!" to the command sender
  51. else:
  52. message "{@P}{@CC} Skript: {@HC}Fleft" to the command sender
  53. message "" to the command sender
  54. message "{@P}{@CC} In Creeper Paranoia, creepers instantly" to the command sender
  55. message "{@P}{@CC} explode when they track a player." to the command sender
  56. message "" to the command sender
  57.  
  58. else if arg-1 is not set:
  59. command sender command "/creeperparanoia help"
  60. else:
  61. command sender command "/creeperparanoia help"
  62.  
  63.  
  64. on entity target:
  65. {CreeperParanoia.Enabled} is true:
  66. entity's target is a player:
  67. entity is creeper:
  68. delete entity
  69. create explosion of force {@Force} at creeper
Advertisement
Add Comment
Please, Sign In to add comment