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

Timer with mins

Comments in 'Plugin Development' started by Kripak, Oct 9, 2015.

  1. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    How to create a timer with mins ?
  2. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    PHP:
    $minutes 2;
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new Task($this),$mineutes*1200);
    TheKofola12 and Kripak like this.
  3. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    Why 1200 ticks in 2 minutes ?
  4. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    1 second = 20 ticks
    1 minute = 60 seconds

    20*60=1200
    TheKofola12 likes this.
  5. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    Ok)
  6. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    20 ticks = 1 second
    Kripak likes this.
  7. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    Why are you repeating information that I've already written? Are you trying to increase your post count?
    TheKofola12 and Taha_The_Hacker like this.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Omg the @Gamecrafter syndrome is infectious...
  9. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    do not know , even before there was a long text , most likely you changed it :) Or removed last . It said that the 1200 ticks is 1 minute ..

Share This Page

Advertisement