Advertisement
fleft17

Untitled

Jul 28th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. options:
  2.  
  3. P: &5[Puncharoo!]&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. victim is not holding air:
  36. damage was caused by projectile:
  37. stop trigger
  38. else:
  39. attacker is holding air:
  40. set {_i} to the tool of victim
  41. remove {_i} from the victim's inventory
  42. drop {_i} at the victim
  43. message "{@P} %attacker% punched you!" to the victim
  44. message "{@P} You lost %{_i}%!" to the victim
  45. message "{@P} You punched %victim%!" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement