Advertisement
fleft17

Untitled

Aug 4th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. command /timeboard [<integer>] [<integer>]:
  2. permission: skript.op
  3. trigger:
  4. if arg-1 is not set:
  5. delete {timeboard.enabled}
  6. execute console command "/scoreboard players reset &c&oMeetup"
  7. execute console command "/scoreboard players reset &b&oPvP"
  8.  
  9. if arg-1 is set:
  10. if arg-2 is set:
  11. set {timeboard.enabled} to true
  12. set {_meetup} to arg-1
  13. set {_pvp} to arg-2
  14. execute console command "/scoreboard players reset &c&oMeetup"
  15. execute console command "/scoreboard players reset &b&oPvP"
  16. wait 1 tick
  17. execute console command "/scoreboard players set &c&oMeetup &7>&9UHC&7< %{_meetup}%"
  18. execute console command "/scoreboard players set &b&oPvP &7>&9UHC&7< %{_pvp}%"
  19. loop (arg-1) times:
  20. {timeboard.enabled} is set:
  21. wait 1 seconds
  22. subtract 1 from {_pvp}
  23. subtract 1 from {_meetup}
  24.  
  25. if {_pvp} is greater than or equal to 1:
  26. execute console command "/scoreboard players remove &b&oPvP &7>&9UHC&7< 1"
  27.  
  28. if {_pvp} is less than or equal to 0:
  29. execute console command "/scoreboard players reset &b&oPvP"
  30.  
  31. if {_meetup} is greater than 0:
  32. execute console command "/scoreboard players remove &c&oMeetup &7>&9UHC&7< 1"
  33.  
  34. if {_meetup} is equal to 0:
  35. execute console command "/scoreboard players reset &c&oMeetup"
  36. execute console command "/scoreboard players reset &b&oPvP"
  37. command sender command "/timeboard"
  38.  
  39. else:
  40. message "{@P} Timeboard stopped" to the command sender
  41. stop trigger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement