HomeJavaModsTimerAPI (for Developers)
This is a simple API for Developers.

Add it to your own Plugin via Build-Path, and use it.

If you added it, you can use followed methods:


Code (Text):
TimerAPI.startTimer(startTime, shownMessage);
starts a timer, shown in the Actionbar of all online players.
if the timer is already started, nothing happens.
startTime means the time at which the timer starts, in seconds.
shownMessage is the String that is shown before the time. like:
shownMessage : timer

Code (Text):
TimerAPI.stopTimer();

stops the timer.

if the Timer isn't started, it does nothing.

Code (Text):
TimerAPI.formattedTime();

returns the current time in the given format. format is: hours:minutes:seconds

Code (Text):
TimerAPI.time;

returns the actual time in seconds. if not started, it returns null.


feel free to use it in any private plugin. In public plugins you can use it, if you credit me somewhere in the Description :)

have fun
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

TimerAPI (for Developers) is a free Minecraft Java mod. Compatible with Minecraft 1.14, 1.15, 1.16. Downloaded 174 times (via Spigot). Download it and open it directly in the game.

Explore more