📅  最后修改于: 2022-03-11 14:52:08.334000             🧑  作者: Mango
int taskID;
public void startCountdown(){
taskID = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this,new Countdown(),20L,20L);
}
public void stopCountdown(){
Bukkit.getServer().getScheduler().cancelTask(taskID);
}
// 20L = 1 Second