Setting SSL to false will now squelch MySQL warnings

This commit is contained in:
nossr50 2019-01-14 20:37:30 -08:00
parent 918b94b1ff
commit 9f8c9db4bc
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -204,7 +204,7 @@ public class Roll extends AcrobaticsSubSkill implements RandomChance {
}
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
*/
private boolean exploitPrevention(Player player) {
private boolean isExploiting(Player player) {
if (!Config.getInstance().getAcrobaticsPreventAFK()) {
return false;
}