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

Display timer in m:s than just seconds

Comments in 'Plugin Development' started by Kabluinc, Aug 31, 2016.

  1. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    my code : very simple

    PHP:
    public function getTime($get "second",$time 1) {          
                    if(
    strtolower($get) == "second")return !is_int($time) ?: floor($time);
                    if(
    strtolower($get) == "minute")return !is_int($time) ?: floor($time 60);
    }
    Last edited: Oct 1, 2016

Share This Page

Advertisement