Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8&o[&e&oPuncharoo!&8&o]&r
- command /puncharoo <text> [<player>]:
- aliases: /punch
- permission: skript.op
- trigger:
- if arg-1 is "on" or "enable":
- if {puncharoo} is true:
- message "{@P} Already enabled!"
- stop trigger
- set {puncharoo} to true
- broadcast "{@P} Enabled by &3&o%command sender%!"
- command "/puncharoo aps"
- if arg-1 is "off" or "false":
- if {puncharoo} is false:
- message "{@P} Already disabled!"
- stop trigger
- set {puncharoo} to false
- broadcast "{@P} Disabled by &3&o%command sender%!"
- command "/puncharoo aps"
- if arg-1 is "toggle" or "switch":
- if {puncharoo} is not set:
- message "{@P} Set &e&oPuncharoo!&r to true or false first!"
- stop trigger
- if {puncharoo} is true:
- command sender command "/puncharoo off"
- stop trigger
- if {puncharoo} is false:
- command sender command "/puncharoo on"
- stop trigger
- if arg-1 is "aps":
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- if arg-1 is "ps":
- loop 5 times:
- execute console command "/playsound random.pop %arg-2% ~ ~ ~ 1 1 1"
- wait 0.05 seconds
- on damage of player:
- {puncharoo} is true:
- damage was caused by projectile:
- stop trigger
- else:
- attacker is holding air:
- victim is not holding air:
- command "/puncharoo ps %attacker%"
- set {_i} to the tool of victim
- remove {_i} from the victim's inventory
- set {_l} to the location 1.5 blocks above the victim
- drop {_i} at {_l}
- message "{@P} &3&o%attacker%&r punched you!" to the victim
- message "{@P} You lost &3&o%{_i}%!" to the victim
- message "{@P} You punched &3&o%victim%!" to the attacker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement