Advertisement
Guest User

Scoreboard

a guest
Jul 20th, 2015
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. options:
  2.     timer: 60 # ton temps
  3. command /timerstart: # start le timer
  4.     trigger:
  5.         set {timer} to true
  6.         set {cooldown} to {@timer}
  7.         broadcast "&8Timer start à %{cooldown}%"
  8. every 1 second: # reduce
  9.     loop all players:
  10.         if {timer} is true:
  11.             reduce {cooldown} by 1
  12.             if {cooldown} is more than 0:
  13.                 display board named "&cTIMER" to loop-player
  14.                 make score " &aTimer : &c %{cooldown}%     " in board of loop-player to 0
  15.                 move display of loop-player to sidebar
  16.             else:
  17.                 wipe loop-player sidebar
  18.                 broadcast "&8Timer fini"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement