From e9c6a7b4b831789a80363315b00fab9a4207fcbe Mon Sep 17 00:00:00 2001 From: Misat11 <20199703+Misat11@users.noreply.github.com> Date: Sun, 12 May 2024 14:39:17 +0200 Subject: [PATCH] fix: 0.2.32.1 - fixed custom driver class loading --- build.gradle | 2 +- .../org/screamingsandals/bedwars/database/DatabaseManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 00ad1ffb2..396930767 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { allprojects { group = 'org.screamingsandals.bedwars' - version = '0.2.32' + version = '0.2.32.1' } if (version.toString().endsWith('-SNAPSHOT')) { diff --git a/plugin/src/main/java/org/screamingsandals/bedwars/database/DatabaseManager.java b/plugin/src/main/java/org/screamingsandals/bedwars/database/DatabaseManager.java index 737f8f5f3..eebec82aa 100644 --- a/plugin/src/main/java/org/screamingsandals/bedwars/database/DatabaseManager.java +++ b/plugin/src/main/java/org/screamingsandals/bedwars/database/DatabaseManager.java @@ -87,7 +87,7 @@ public void initialize() { driverClassName = reader.readLine(); if (driverClassName != null) { // All characters after '#' should be ignored, whitespaces around the qualified name are also ignored - driverClassName = driver.split("#", 2)[0].trim(); + driverClassName = driverClassName.split("#", 2)[0].trim(); } } while (driverClassName != null && driverClassName.isEmpty()); }