Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P : &7[&4UHC&7]
- perm : uhc.staff
- waittime : 10
- command /weakestlink [<text>]:
- permission: {@perm}
- permission message: &4You don't have permission to do this!
- usage: &7(&4/weakestlink &7[&aOn&7/&cOff&7/&3Start])
- trigger:
- if arg-1 is "On" or "on" or "Enable" or "enable":
- set {Scenario::WeakestLink} to true
- broadcast "{@P} &cWeakestLink has been &aEnabled"
- else if arg-1 is "Off" or "off" or "Disable" or "disable":
- set {Scenario::WeakestLink} to false
- broadcast "{@P} &cWeakestLink has been Disabled"
- else if arg-1 is "toggle" or "Toggle":
- if {Scenario::WeakestLink} is true:
- set {Scenario::WeakestLink} to false
- broadcast "{@P} &cWeakestLink has been Disabled"
- else:
- set {Scenario::WeakestLink} to true
- broadcast "{@P} &cWeakestLink has been &aEnabled"
- else if arg-1 is "Start" or "start":
- set {weakestlink.time} to {@waittime}
- loop all players:
- set {Scenario::WeakestLink::%loop-player%} to "%loop-player%"
- else if arg-1 is "Stop" or "stop":
- set {Scenario::WeakestLink} to false
- broadcast "{@P} &cWeakestLink has been Disabled"
- else if arg-1 is "Meetup" or "meetup":
- set {Scenario::WeakestLink} to false
- broadcst "{@P} &cWeakestLink has been Disabled due to it being Meetup"
- every minute:
- {Scenario::WeakestLink} is true
- remove 1 from {weakestlink.time}
- if {weakestlink.time} is less than or equal to 0:
- loop all players:
- if {_lowest} is not set:
- set {_lowest} to loop-player
- if loop-player's health is less than the health of {_lowest}:
- set {_lowest} to loop-player
- kill {_lowest}
- broadcast "&7[&4Weakest Link&7] %{_lowest}% was killed due to them having the lowest health!"
- on death:
- if event.getDeathMessage() is "%player% died":
- if {Scenario::WeakestLink} is true:
- set the death message to "&7[&4Weakest Link&7] %{_lowest}% was killed due to them having the lowest health!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement