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

I need help with countdown

Comments in 'Plugin Development' started by BSHRMG, Aug 14, 2016.

  1. BSHRMG
    Offline

    BSHRMG New Member

    Joined:
    Mar 15, 2016
    Posts:
    21
    Hello I just would like to know how can I do this countdown on pocketmine? :D

    Attached Files:

  2. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    applqpak likes this.
  3. BSHRMG
    Offline

    BSHRMG New Member

    Joined:
    Mar 15, 2016
    Posts:
    21
    Thanks but how can I add it with that little bar? :)
  4. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    PHP:
    $player->sendTip(TextFormat::GREEN.str_repeat('|',$tick).TextFormat::RED.str_repeat('|',$max $tick));
    where $tick is the current tick and $max is the max number of '|' you want to see
  5. BSHRMG
    Offline

    BSHRMG New Member

    Joined:
    Mar 15, 2016
    Posts:
    21
    Thank you :D

Share This Page

Advertisement