SHARE
TWEET

Untitled

a guest Jul 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     P : &7[&4UHC&7]
  3.     perm : uhc.staff
  4.     waittime : 1
  5.  
  6.  
  7.  
  8. command /weakestlink [<text>]:
  9.     permission: {@perm}
  10.     permission message: &4You don't have permission to do this!
  11.     usage: &7(&4/weakestlink &7[&aOn&7/&cOff&7/&3Start])
  12.     trigger:
  13.         if arg-1 is "On" or "on" or "Enable" or "enable":
  14.             set {Scenario::WeakestLink} to true
  15.             broadcast "{@P} &cWeakestLink has been &aEnabled"
  16.         else if arg-1 is "Off" or "off" or "Disable" or "disable":
  17.             set {Scenario::WeakestLink} to false
  18.             broadcast "{@P} &cWeakestLink has been Disabled"
  19.         else if arg-1 is "toggle" or "Toggle":
  20.             if {Scenario::WeakestLink} is true:
  21.                 set {Scenario::WeakestLink} to false
  22.                 broadcast "{@P} &cWeakestLink has been Disabled"
  23.             else:
  24.                 set {Scenario::WeakestLink} to true
  25.                 broadcast "{@P} &cWeakestLink has been &aEnabled"
  26.         else if arg-1 is "Start" or "start":
  27.             set {weakestlink.time} to {@waittime}
  28.             loop all players:
  29.                 set {Scenario::WeakestLink::%loop-player%} to "%loop-player%"
  30.         else if arg-1 is "Stop" or "stop":
  31.             set {Scenario::WeakestLink} to false
  32.             broadcast "{@P} &cWeakestLink has been Disabled"
  33.         else if arg-1 is "Meetup" or "meetup":
  34.             set {Scenario::WeakestLink} to false
  35.             broadcast "{@P} &cWeakestLink has been Disabled due to it being Meetup"
  36.  
  37. every minute:
  38.     {Scenario::WeakestLink} is true
  39.     remove 1 from {weakestlink.time}
  40.     if {weakestlink.time} is less than or equal to 0:
  41.         loop all players:
  42.             if {_lowest} is not set:
  43.                 set {_lowest} to loop-player
  44.             if loop-player's health is less than the health of {_lowest}:
  45.                 set {_lowest} to loop-player
  46.                 kill {_lowest}
  47.                 broadcast "&7[&4Weakest Link&7] %{_lowest}% was killed due to them having the lowest health!"
  48.                
  49. on death:
  50.     if event.getDeathMessage() is "%player% died":
  51.         if {Scenario::WeakestLink} is true:
  52.             set the death message to "&7[&4Weakest Link&7] %{_lowest}% was killed due to them having the lowest health!"
  53.  
  54. on skript load:
  55.     set {Scenario::WeakestLink} to false
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top