From e676ea516c0cdf430ad9ca44beb7d681a222b6ea Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Mon, 9 Mar 2020 12:35:17 +0100 Subject: [PATCH] Increase primerestart cooldown #42 --- .../buttondevteam/core/component/restart/RestartComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chroma-Core/src/main/java/buttondevteam/core/component/restart/RestartComponent.java b/Chroma-Core/src/main/java/buttondevteam/core/component/restart/RestartComponent.java index 83df9f5..99fa663 100644 --- a/Chroma-Core/src/main/java/buttondevteam/core/component/restart/RestartComponent.java +++ b/Chroma-Core/src/main/java/buttondevteam/core/component/restart/RestartComponent.java @@ -43,7 +43,7 @@ public class RestartComponent extends Component implements Listener if (PrimeRestartCommand.isLoud()) TBMCChatAPI.SendSystemMessage(Channel.GlobalChat, Channel.RecipientTestResult.ALL, "§cNobody is online anymore. Restarting.", restartBroadcast); Bukkit.spigot().restart(); - } else if (!(event.getPlayer() instanceof IFakePlayer) && System.nanoTime() - 10 * 1000000000L - lasttime > 0) { //Ten seconds passed since last reminder + } else if (!(event.getPlayer() instanceof IFakePlayer) && System.nanoTime() - 10 * 60 * 1000000000L - lasttime > 0) { //10 minutes passed since last reminder lasttime = System.nanoTime(); if (PrimeRestartCommand.isLoud()) TBMCChatAPI.SendSystemMessage(Channel.GlobalChat, Channel.RecipientTestResult.ALL, ChatColor.DARK_RED + "The server will restart as soon as nobody is online.", restartBroadcast);