Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &5[Puncharoo!]&r
- command /puncharoo <text>:
- aliases: /punch
- permission: skript.op
- trigger:
- if arg is "on" or "enable":
- set {puncharoo} to true
- broadcast "{@P} Enabled by %command sender%!"
- command "/has aps"
- if arg is "off" or "false":
- set {puncharoo} to false
- broadcast "{@P} Disabled by %command sender%!"
- command "/has aps"
- if arg is "toggle" or "switch":
- if {puncharoo} is not set:
- message "{@P} Set HaS to true or false first!"
- stop trigger
- if {puncharoo} is true:
- command sender command "/has off"
- stop trigger
- if {puncharoo} is false:
- command sender command "/has on"
- stop trigger
- if arg is "aps":
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- on damage of player:
- {puncharoo} is true:
- attacker is holding air:
- victim is not holding air:
- set {_i} to the tool of victim
- remove {_i} from the victim's inventory
- drop {_i} at the victim
- message "{@P} %attacker% punched you!" to the victim
- message "{@P} You lost %{_i}%!" to the victim
- message "{@P} You punched %victim%!" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement