From 206d375bbd87a4831971ac9114bf67bc09a8fdde Mon Sep 17 00:00:00 2001 From: Dawson Hessler Date: Sun, 19 Dec 2021 13:48:05 -0500 Subject: [PATCH] Fixing version and sql on load --- .../java/dev/brighten/antivpn/database/sql/utils/MySQL.java | 1 + Velocity/src/main/resources/velocity-plugin.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/src/main/java/dev/brighten/antivpn/database/sql/utils/MySQL.java b/Common/src/main/java/dev/brighten/antivpn/database/sql/utils/MySQL.java index 99aca2b..f10a693 100644 --- a/Common/src/main/java/dev/brighten/antivpn/database/sql/utils/MySQL.java +++ b/Common/src/main/java/dev/brighten/antivpn/database/sql/utils/MySQL.java @@ -12,6 +12,7 @@ public class MySQL { public static void init() { try { if (conn == null || conn.isClosed()) { + Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://" + AntiVPN.getInstance().getConfig().getIp() + ":" + AntiVPN.getInstance().getConfig().getPort() + "/?useSSL=true&autoReconnect=true", diff --git a/Velocity/src/main/resources/velocity-plugin.json b/Velocity/src/main/resources/velocity-plugin.json index 68f362d..1c547a3 100644 --- a/Velocity/src/main/resources/velocity-plugin.json +++ b/Velocity/src/main/resources/velocity-plugin.json @@ -1 +1 @@ -{"id":"kaurivpn","name":"KauriVPN","version":"1.5.0","authors":["funkemunky"],"dependencies":[],"main":"dev.brighten.antivpn.velocity.VelocityPlugin"} +{"id":"kaurivpn","name":"KauriVPN","version":"${project.version}","authors":["funkemunky"],"dependencies":[],"main":"dev.brighten.antivpn.velocity.VelocityPlugin"}