Need Help with Countdown

Discussion in 'Plugin Development' started by MrGriefer_, Sep 24, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    MrGriefer_

    Hello,

    So basically I'm working on a mini-game and I''m trying to create a countdown for the lobby waiting time and I'm trying to make it so for example when the time is 270 it will send a message saying "Time: 270" and when its 210 it will send the same message "Time: 210" and when its 150 it will do the same, etc... My question is how do I check if the time is 270, 210, 150, etc... Basically minus 60 every time.
    Sorry for my bad English!
     
  2. Offline

    Minesuchtiiii

    1. create an integer.
    2. create a sync repeating task
    3. subtract 1 from the integer every second
    4. check value from integer, if value = X sent broadcast message
     
Thread Status:
Not open for further replies.

Share This Page