diff --git a/build.gradle b/build.gradle index 66fc270..4d85fc6 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ sourceCompatibility = '1.8' targetCompatibility = '1.8' group 'io.github.flibio' -version '2.2.2' +version '2.2.3' defaultTasks 'licenseFormat', 'clean', 'build' @@ -33,7 +33,7 @@ dependencies { compile 'org.spongepowered:spongeapi:4.1.0-SNAPSHOT' compile 'com.github.flibio:updatifier:v1.4.0:api' compile 'net.minecrell.mcstats:statslite-sponge:0.2.2' - compile 'com.github.flibiostudio:utils:1.6.6' + compile 'com.github.flibiostudio:utils:1.6.7' } shadowJar { diff --git a/src/main/java/io/github/flibio/economylite/impl/PlayerServiceCommon.java b/src/main/java/io/github/flibio/economylite/impl/PlayerServiceCommon.java index cd647e2..3110417 100644 --- a/src/main/java/io/github/flibio/economylite/impl/PlayerServiceCommon.java +++ b/src/main/java/io/github/flibio/economylite/impl/PlayerServiceCommon.java @@ -46,7 +46,7 @@ public class PlayerServiceCommon implements PlayerEconService { public PlayerServiceCommon(SqlManager manager) { this.manager = manager; - if (isWorking()) + if (manager.initialTestConnection()) manager.executeUpdate("CREATE TABLE IF NOT EXISTS economyliteplayers(uuid VARCHAR(36), balance DECIMAL(11,2), currency VARCHAR(1024))"); } diff --git a/src/main/java/io/github/flibio/economylite/impl/VirtualServiceCommon.java b/src/main/java/io/github/flibio/economylite/impl/VirtualServiceCommon.java index f8e4156..c0dde4b 100644 --- a/src/main/java/io/github/flibio/economylite/impl/VirtualServiceCommon.java +++ b/src/main/java/io/github/flibio/economylite/impl/VirtualServiceCommon.java @@ -46,7 +46,7 @@ public class VirtualServiceCommon implements VirtualEconService { public VirtualServiceCommon(SqlManager manager) { this.manager = manager; - if (isWorking()) { + if (manager.initialTestConnection()) { manager.executeUpdate("CREATE TABLE IF NOT EXISTS economylitevirts(id VARCHAR(36), balance DECIMAL(11,2), currency VARCHAR(1024))"); manager.executeUpdate("ALTER TABLE `economylitevirts` CHANGE `id` `id` VARCHAR(1024)"); }