Advertisement
fleft17

Untitled

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