Skip to content

Instantly share code, notes, and snippets.

@GameplayJDK
GameplayJDK / HowToUseIt.txt
Last active November 13, 2019 18:56
package de.GameplayJDK.Code.Util;
// --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..
// 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 {
// ==================================================================== \\
package de.GameplayJDK.TimerAPI.API;
import java.util.concurrent.Callable;
/**
*
* @author GameplayJDK
*
*/
public class TimedFunctionCall {