Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Prefix: &7[&5&oSwitcheroo!&7]&r
- command /switcheroo [<text>]:
- permission: skript.switcheroo
- trigger:
- if arg 1 is equal to "on":
- if {Switcheroo} is true:
- message "{@Prefix} Already enabled!"
- else:
- set {Switcheroo} to true
- loop all players:
- command "/playsound random.pop %loop-player%"
- if loop-player has the permission "skript.switcheroo":
- message "{@Prefix} &cENABLED! &4[&rby &9%command sender%&4]" to loop-player
- else:
- message "{@Prefix} &cENABLED!" to loop-player
- else if arg 1 is equal to "off":
- if {Switcheroo} is not set:
- message "{@Prefix} Already disabled!"
- else:
- delete {Switcheroo}
- loop all players:
- command "/playsound random.break %loop-player%"
- if loop-player has the permission "skript.switcheroo":
- message "{@Prefix} &aDisabled! &4[&rby &9%command sender%&4]" to loop-player
- else:
- message "{@Prefix} &aDisabled!" to loop-player
- else:
- message "{@Prefix} &e/switcheroo on &9- &7Enable Switcheroo"
- message "{@Prefix} &e/switcheroo off &9- &7Disable Switcheroo"
- on damage:
- {Switcheroo} is true
- attacker is a player
- attacker is alive
- victim is a player
- victim is alive
- damage was caused by projectile
- projectile is an arrow
- set {_templocation} to (location of victim)
- teleport victim to (location 0.3 below attacker)
- teleport attacker to {_templocation}
Advertisement
Add Comment
Please, Sign In to add comment