From 99e5c1b25e4c2a6db346dd146e78982f32ea64de Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Tue, 13 Jul 2021 18:38:35 +0200 Subject: [PATCH] Attempted to update to 1.17.1 --- pom.xml | 14 +++++++------- .../data/database/DatabaseConnection.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 621b0d1..2b5f968 100644 --- a/pom.xml +++ b/pom.xml @@ -6,11 +6,11 @@ groupId LiteFlags - 0.5 + 1.0 - 11 - 11 + 16 + 16 ${project.artifactId} @@ -21,8 +21,8 @@ maven-compiler-plugin 3.5.1 - 11 - 11 + 16 + 16 @@ -41,9 +41,9 @@ - com.destroystokyo.paper + io.papermc.paper paper-api - 1.16.5-R0.1-SNAPSHOT + 1.17.1-R0.1-SNAPSHOT provided diff --git a/src/main/java/com/liteflags/data/database/DatabaseConnection.java b/src/main/java/com/liteflags/data/database/DatabaseConnection.java index b77f6da..e071c65 100644 --- a/src/main/java/com/liteflags/data/database/DatabaseConnection.java +++ b/src/main/java/com/liteflags/data/database/DatabaseConnection.java @@ -26,7 +26,7 @@ public class DatabaseConnection { if (this.connection == null || this.connection.isClosed()) { synchronized (this) { if (this.connection == null || this.connection.isClosed()) { - this.connection = DriverManager.getConnection("jdbc:" + this.drivers + "://" + this.ip + ":" + this.port + "/" + this.database, this.username, this.password); + this.connection = DriverManager.getConnection("jdbc:" + this.drivers + "://" + this.ip + ":" + this.port + "/" + this.database + "?autoReconnect=true&useSSL=false", this.username, this.password); } } }