Skip to content

Instantly share code, notes, and snippets.

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