diff --git a/src/main/java/com/graywolf336/jail/JailIO.java b/src/main/java/com/graywolf336/jail/JailIO.java index a9192d9..3a2159c 100644 --- a/src/main/java/com/graywolf336/jail/JailIO.java +++ b/src/main/java/com/graywolf336/jail/JailIO.java @@ -149,7 +149,7 @@ public class JailIO { Connection mysqlConnection = DriverManager.getConnection("jdbc:mysql://" + pl.getConfig().getString("storage.mysql.host") + ":" + pl.getConfig().getString("storage.mysql.port") + "/" + pl.getConfig().getString("storage.mysql.database"), pl.getConfig().getString("storage.mysql.username"), pl.getConfig().getString("storage.mysql.password")); - mysqlConnection.setAutoCommit(false); + mysqlConnection.setAutoCommit(true); this.con = mysqlConnection; pl.debug("Connection created for MySQL.");