diff --git a/src/test/java/demo/Main.java b/src/test/java/demo/Main.java index 3cbd03e19..3dd4a1093 100644 --- a/src/test/java/demo/Main.java +++ b/src/test/java/demo/Main.java @@ -52,7 +52,7 @@ public class Main { commandManager.setUnknownCommandCallback((sender, command) -> sender.sendMessage(Component.text("Unknown command", NamedTextColor.RED))); - MinecraftServer.getBenchmarkManager().enable(new UpdateOption(10 * 1000, TimeUnit.MILLISECOND)); + MinecraftServer.getBenchmarkManager().enable(Duration.of(10, TimeUnit.SECOND)); MinecraftServer.getSchedulerManager().buildShutdownTask(() -> System.out.println("Good night")).schedule();