Advertisement
fleft17

Untitled

Aug 20th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. options:
  2.  
  3. P: &8&o[&e&oPuncharoo!&8&o]&r
  4.  
  5.  
  6. command /puncharoo <text> [<player>]:
  7. aliases: /punch
  8. permission: skript.op
  9. trigger:
  10. if arg-1 is "on" or "enable":
  11. if {puncharoo} is true:
  12. message "{@P} Already enabled!"
  13. stop trigger
  14. set {puncharoo} to true
  15. broadcast "{@P} Enabled by &3&o%command sender%!"
  16. command "/puncharoo aps"
  17. if arg-1 is "off" or "false":
  18. if {puncharoo} is false:
  19. message "{@P} Already disabled!"
  20. stop trigger
  21. set {puncharoo} to false
  22. broadcast "{@P} Disabled by &3&o%command sender%!"
  23. command "/puncharoo aps"
  24. if arg-1 is "toggle" or "switch":
  25. if {puncharoo} is not set:
  26. message "{@P} Set &e&oPuncharoo!&r to true or false first!"
  27. stop trigger
  28. if {puncharoo} is true:
  29. command sender command "/puncharoo off"
  30. stop trigger
  31. if {puncharoo} is false:
  32. command sender command "/puncharoo on"
  33. stop trigger
  34. if arg-1 is "aps":
  35. loop all players:
  36. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  37. if arg-1 is "ps":
  38. loop 5 times:
  39. execute console command "/playsound random.pop %arg-2% ~ ~ ~ 1 1 1"
  40. wait 0.05 seconds
  41.  
  42.  
  43. on damage of player:
  44. {puncharoo} is true:
  45. damage was caused by projectile:
  46. stop trigger
  47. else:
  48. attacker is holding air:
  49. victim is not holding air:
  50. command "/puncharoo ps %attacker%"
  51. set {_i} to the tool of victim
  52. remove {_i} from the victim's inventory
  53. set {_l} to the location 1.5 blocks above the victim
  54. drop {_i} at {_l}
  55. message "{@P} &3&o%attacker%&r punched you!" to the victim
  56. message "{@P} You lost &3&o%{_i}%!" to the victim
  57. message "{@P} You punched &3&o%victim%!" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement