mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Setting SSL to false will now squelch MySQL warnings
This commit is contained in:
parent
918b94b1ff
commit
9f8c9db4bc
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user