2014-03-28 23:07:48 +01:00
|
|
|
package com.gmail.nossr50.runnables;
|
|
|
|
|
|
|
|
import com.gmail.nossr50.mcMMO;
|
|
|
|
import com.gmail.nossr50.runnables.skills.AprilTask;
|
|
|
|
import com.gmail.nossr50.util.Misc;
|
2019-01-15 07:11:58 +01:00
|
|
|
import org.bukkit.scheduler.BukkitRunnable;
|
2014-03-28 23:07:48 +01:00
|
|
|
|
|
|
|
public class CheckDateTask extends BukkitRunnable {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
if (!mcMMO.getHolidayManager().isAprilFirst()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set up jokes
|
|
|
|
new AprilTask().runTaskTimer(mcMMO.p, 1L * 60L * Misc.TICK_CONVERSION_FACTOR, 10L * 60L * Misc.TICK_CONVERSION_FACTOR);
|
|
|
|
mcMMO.getHolidayManager().registerAprilCommand();
|
|
|
|
|
|
|
|
// Jokes deployed.
|
|
|
|
this.cancel();
|
|
|
|
}
|
|
|
|
}
|