2
0
Эх сурвалжийг харах

Setting SSL to false will now squelch MySQL warnings

nossr50 6 жил өмнө
parent
commit
9f8c9db4bc

+ 3 - 0
src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java

@@ -41,6 +41,9 @@ public final class SQLDatabaseManager implements DatabaseManager {
                     "?verifyServerCertificate=false"+
                     "?verifyServerCertificate=false"+
                     "&useSSL=true"+
                     "&useSSL=true"+
                     "&requireSSL=true";
                     "&requireSSL=true";
+        else
+            connectionString+=
+                    "?useSSL=false";
 
 
         try {
         try {
             // Force driver to load if not yet loaded
             // Force driver to load if not yet loaded

+ 2 - 2
src/main/java/com/gmail/nossr50/datatypes/skills/subskills/acrobatics/Roll.java

@@ -204,7 +204,7 @@ public class Roll extends AcrobaticsSubSkill implements RandomChance {
     }
     }
 
 
     private boolean canRoll(Player player) {
     private boolean canRoll(Player player) {
-        return !exploitPrevention(player) && Permissions.isSubSkillEnabled(player, SubSkillType.ACROBATICS_ROLL);
+        return !isExploiting(player) && Permissions.isSubSkillEnabled(player, SubSkillType.ACROBATICS_ROLL);
     }
     }
 
 
     /**
     /**
@@ -281,7 +281,7 @@ public class Roll extends AcrobaticsSubSkill implements RandomChance {
      *
      *
      * @return true if exploits are detected, false otherwise
      * @return true if exploits are detected, false otherwise
      */
      */
-    private boolean exploitPrevention(Player player) {
+    private boolean isExploiting(Player player) {
         if (!Config.getInstance().getAcrobaticsPreventAFK()) {
         if (!Config.getInstance().getAcrobaticsPreventAFK()) {
             return false;
             return false;
         }
         }