From d1d7b9fb299d56c87df0cbb63d87113e6270be4c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 18 May 2025 09:22:49 +0700 Subject: [PATCH] fix: auth timeout seconds --- src/main/java/me/chayapak1/chomens_bot/Configuration.java | 2 +- src/main/resources/default-config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/chayapak1/chomens_bot/Configuration.java b/src/main/java/me/chayapak1/chomens_bot/Configuration.java index eab9ae68..89dd261c 100644 --- a/src/main/java/me/chayapak1/chomens_bot/Configuration.java +++ b/src/main/java/me/chayapak1/chomens_bot/Configuration.java @@ -46,7 +46,7 @@ public class Configuration { public static class OwnerAuthentication { public boolean enabled = false; - public int timeout = 10 * 1000; + public int timeout = 10; } public static class Backup { diff --git a/src/main/resources/default-config.yml b/src/main/resources/default-config.yml index f962ec36..a99103e7 100644 --- a/src/main/resources/default-config.yml +++ b/src/main/resources/default-config.yml @@ -80,7 +80,7 @@ consoleChatFormat: '{"translate":"chat.type.text","with":["OWNER_NAME","MESSAGE" ownerAuthentication: enabled: false - timeout: 10000 # 10 seconds - 10 * 1000 + timeout: 10 # in seconds !!! not milliseconds # if this is enabled when someone does a clear chat command the bot # will tellraw `{player} cleared the chat`