summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Panić <david@panic.tk>2019-04-29 00:15:33 +0200
committerDavid Panić <david@panic.tk>2019-06-02 21:14:00 +0200
commit6e2bf1b5fa32fd23847163f66f8f22804afffa66 (patch)
treef306b4bd1c96cadc199f04ee61b35f321ac5ded4
parente738ad0fc6ad351f85a1b6e87cedcc2be50c92c0 (diff)
Added autoReconnect to LoginSecurity
-rw-r--r--src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.java b/src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.java
index e7eb9d4..33ad5f0 100644
--- a/src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.java
+++ b/src/main/java/com/redstoner/modules/loginsecurity/LoginSecurity.java
@@ -37,7 +37,7 @@ import com.redstoner.modules.Module;
@Commands(CommandHolderType.File)
@AutoRegisterListener
-@Version(major = 5, minor = 1, revision = 0, compatible = 5)
+@Version(major = 5, minor = 1, revision = 1, compatible = 5)
public class LoginSecurity implements Module, Listener
{
protected static Map<UUID, Location> loggingIn;
@@ -55,7 +55,7 @@ public class LoginSecurity implements Module, Listener
}
try
{
- MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase((String) config.get("database"));
+ MysqlDatabase database = MysqlHandler.INSTANCE.getDatabase((String) config.get("database") + "?autoReconnect=true");
MysqlField uuid = new MysqlField("uuid", new VarChar(36), true);
MysqlField pass = new MysqlField("pass", new VarChar(88), true);
database.createTableIfNotExists((String) config.get("table"), uuid, pass);