From 0867719878da23bd60858fa11f445ad3c81ce86f Mon Sep 17 00:00:00 2001 From: games647 Date: Sun, 21 Aug 2022 16:20:39 +0200 Subject: [PATCH] Use own config to prevent single redundant loading config after start Fixes #893 --- .../com/github/games647/fastlogin/bukkit/hook/AuthMeHook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/hook/AuthMeHook.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/hook/AuthMeHook.java index c4af010c..394c80b3 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/hook/AuthMeHook.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/hook/AuthMeHook.java @@ -62,7 +62,7 @@ public class AuthMeHook implements AuthPlugin, Listener { this.plugin = plugin; this.authmeAPI = AuthMeApi.getInstance(); - if (plugin.getConfig().getBoolean("respectIpLimit", false)) { + if (plugin.getCore().getConfig().getBoolean("respectIpLimit", false)) { try { Field managementField = this.authmeAPI.getClass().getDeclaredField("management"); managementField.setAccessible(true);