This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.GameplayJDK.TimerAPI.API; | |
import java.util.concurrent.Callable; | |
/** | |
* | |
* @author GameplayJDK | |
* | |
*/ | |
public class TimedFunctionCall { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coundown class by @CeramicTitan / @ZeusAllMighty11, modified by GameplayJDK | |
package de.GameplayJDK.Lib.Util.Runnables; | |
import org.bukkit.plugin.Plugin; | |
import org.bukkit.scheduler.BukkitRunnable; | |
import org.bukkit.scheduler.BukkitTask; | |
public class Countdown { | |
// ==================================================================== \\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --Snip-- | |
new de.GameplayJDK.Code.Util.Timer(owner) | |
.setTimerHandler(new de.GameplayJDK.Code.Util.Timer.TimerHandler() { // Start, Stop and Tick actions | |
@Override | |
public void onStart(de.GameplayJDK.Code.Util.Timer parent) { | |
// Do something when it starts.. | |
} | |
@Override | |
public void onFinish(de.GameplayJDK.Code.Util.Timer parent) { | |
// Or when it's finished.. |