public final class CountdownManager
extends java.lang.Object
Countdown objects| Modifier and Type | Method and Description |
|---|---|
static boolean |
addCountdown(Countdown countdown) |
static Countdown |
getCountdown(java.lang.String name,
CountdownPlugin countdownPlugin) |
static java.util.ArrayList<Countdown> |
getCountdownList(CountdownPlugin countdownPlugin) |
static int |
pauseCountdown(Countdown countdown,
CountdownPlugin countdownPlugin) |
static boolean |
registerListener(CountdownPlugin countdownPlugin,
CountdownListener listener) |
static int |
removeCountdown(Countdown countdown,
CountdownPlugin countdownPlugin) |
static int |
resumeCountdown(Countdown countdown,
CountdownPlugin countdownPlugin) |
static int |
startCountdown(Countdown countdown,
CountdownPlugin countdownPlugin) |
static int |
stopCountdown(Countdown countdown,
CountdownPlugin countdownPlugin) |
static boolean |
unregisterListener(CountdownPlugin countdownPlugin,
CountdownListener listener) |
public static boolean registerListener(CountdownPlugin countdownPlugin, CountdownListener listener)
listener - to registertrue if the listener has been registered
successfully, otherwise falsepublic static boolean unregisterListener(CountdownPlugin countdownPlugin, CountdownListener listener)
listener - to unregistertrue if the listener has been unregistered
successfully, otherwise falsepublic static Countdown getCountdown(java.lang.String name, CountdownPlugin countdownPlugin) throws NotTheOwningPluginException
name - of the countdowncountdownPlugin - that owns the countdownnullNotTheOwningPluginException - thrown if the countdownPlugin is not the owner of the
countdownpublic static java.util.ArrayList<Countdown> getCountdownList(CountdownPlugin countdownPlugin)
countdownPlugin - that owns the countdown(s)Countdowns of the
countdownPluginpublic static boolean addCountdown(Countdown countdown)
countdown - to addtrue if the countdown has been added successfully,
otherwise falsepublic static int removeCountdown(Countdown countdown, CountdownPlugin countdownPlugin)
countdown - to removecountdownPlugin - to check if the plugin is allowed to remove the
countdownpublic static int startCountdown(Countdown countdown, CountdownPlugin countdownPlugin)
countdown - to startowningPlugin - to check if the plugin is allowed to start the
countdownpublic static int stopCountdown(Countdown countdown, CountdownPlugin countdownPlugin)
countdown - to stopcountdownPlugin - to check if the plugin is allowed to stop the countdownpublic static int pauseCountdown(Countdown countdown, CountdownPlugin countdownPlugin)
countdown - to pausecountdownPlugin - to check if the plugin is allowed to pause the
countdownpublic static int resumeCountdown(Countdown countdown, CountdownPlugin countdownPlugin)
countdown - to resumecountdownPlugin - to check if the plugin is allowed to resume the
countdown