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

time() function

Comments in 'Plugin Development' started by Kripak, Nov 10, 2015.

  1. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    How to use the Unix Timestamp this plugin: With tap you get at a bakery bun, but the next tap chatting written, "You can use the bakery every 20 seconds" ?
  2. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    Calculate the time between it being used, $timeOne = time() at the first use, $timeTwo = time() at the second use, then $timeTwo - $timeOne and you have the time between it in Seconds
    PEMapModder likes this.

Share This Page

Advertisement