Remove scheduler debugging

This commit is contained in:
Felix Cravic 2020-07-29 06:59:38 +02:00
parent 2c58253d95
commit 3b01317b1a

View File

@ -13,9 +13,6 @@ import net.minestom.server.storage.systems.FileStorageSystem;
import net.minestom.server.utils.time.TimeUnit;
import net.minestom.server.utils.time.UpdateOption;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Main {
@ -56,11 +53,6 @@ public class Main {
MinecraftServer.getBenchmarkManager().enable(new UpdateOption(10 * 1000, TimeUnit.MILLISECOND));
MinecraftServer.getSchedulerManager().buildTask(() -> {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH:mm:ss.SSS");
System.out.println(simpleDateFormat.format(new Date()));
}).repeat(1, TimeUnit.SECOND).buildTask();
MinecraftServer.getSchedulerManager().buildShutdownTask(() -> System.out.println("Good night")).buildTask();