Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Countdown

Comments in 'Plugin Development' started by GamesLoad, Nov 8, 2015.

  1. GamesLoad
    Offline

    GamesLoad Active Member

    Joined:
    Jun 28, 2014
    Posts:
    106
    Minecraft User:
    GamesLoad
    hello I want to know how I could do a countdown to 24h.
    I had thought of putting the seconds minutes and hours in different variables. And then when the three variables are 0 to perform action. But you could not tell me how someone can do with the tick?
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    You can look at my plugin RestartMe, it utilizes a timer that counts down. But please don't copy the code, try to understand it instead! :p https://github.com/Gamecrafter/PocketMine-Plugins/tree/master/RestartMe Leave a like if this helped!
    abxyHD and Legoboy0215 like this.

Share This Page

Advertisement