Advertisement
mieszka

Chump

Feb 11th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. command /chump <text>:
  2. permission: skript.op
  3. usage: /Chump <start:stop>
  4. trigger:
  5. if arg 1 is "start":
  6. broadcast "&bChump Charity has been enabled!"
  7. set {Chump} to true
  8. if arg 1 is "stop":
  9. broadcast "&cChump Charity has been disabled!"
  10. set {Chump} to false
  11. variables:
  12. {prefix} = <gold><bold>[Chump Charity]
  13.  
  14. every 10 Minutes:
  15. if {Chump} is true:
  16. broadcast "%{prefix}% &3<bold>The player with the lowest health in 10 seconds will be healed!"
  17. broadcast "&3<bold>10..."
  18. wait 1 second
  19. broadcast "&3<bold>9..."
  20. wait 1 second
  21. broadcast "&3<bold>8..."
  22. wait 1 second
  23. broadcast "&3<bold>7..."
  24. wait 1 second
  25. broadcast "&3<bold>6..."
  26. wait 1 second
  27. broadcast "&3<bold>5..."
  28. wait 1 second
  29. broadcast "&3<bold>4..."
  30. wait 1 second
  31. broadcast "&3<bold>3..."
  32. wait 1 second
  33. broadcast "&3<bold>2..."
  34. wait 1 second
  35. broadcast "&3<bold>1..."
  36. wait 1 second
  37. broadcast "&3<bold>0!"
  38. loop all players:
  39. if {lowest.Health} is not set:
  40. set {lowest.health} to loop-player
  41. if the health of loop-player is less than the health of {lowest.health}:
  42. set {lowest.health} to loop-player
  43. heal {lowest.health} by 10 hearts
  44. broadcast "&3<bold>%{lowest.health}% got the heal!"
  45. delete {lowest.health}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement