Optimises

This commit is contained in:
HaHaWTH 2023-11-05 12:17:21 +08:00
parent 11a4cff10a
commit 73c3cea778
2 changed files with 3 additions and 1 deletions

View File

@ -429,7 +429,8 @@ public class AuthMe extends JavaPlugin {
getLogger().log(Level.INFO, "You are running the latest version.");
}
} catch (IOException e) {
getLogger().log(Level.WARNING, "Error occurred while checking updates from GitHub. Reason: " + e.getMessage());
String formattedException = ExceptionUtils.formatException(e);
getLogger().log(Level.WARNING, "Error occurred while checking updates from GitHub. Reason: " + formattedException);
}
});
}

View File

@ -37,6 +37,7 @@ import static org.bukkit.Bukkit.getServer;
public class GuiCaptchaHandler implements Listener{
//define AuthMeApi
private final AuthMeApi authmeApi = AuthMeApi.getInstance();
private final Plugin plugin;
private PacketAdapter chatPacketListener;
private PacketAdapter windowPacketListener;