mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +01:00
Remove scheduler debugging
This commit is contained in:
parent
2c58253d95
commit
3b01317b1a
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user