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

Solved time and seconds ?

Comments in 'Plugin Development' started by Ritch, Mar 15, 2016.

  1. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Hi guys, how to make time with minute and second at the same time ?
    I Need code
    Survingo likes this.
  2. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    you should count in ticks like 20 ticks = 1 sec and if there is 60 sec display 1 minute to player and so one....
    Survingo likes this.
  3. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    and when it is >= 60 just display 1 minute and $seconds - 60
    Survingo and Ritch like this.
  4. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    task Code ???
    Survingo likes this.
  5. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    yes..... but its not code its my description what should you do using your code... And my another question : are you russian??
    Survingo likes this.
  6. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    No.. XD
    Survingo likes this.
  7. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    Survingo likes this.
  8. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    [SOLVED] with ...
    PHP:
    $player->sendTip(TextFormat::BLUE."[GAME] finish in ".$this->time." : ".$this->secs." !");
    Survingo likes this.
  9. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Thank!
    Survingo likes this.

Share This Page

Advertisement