Renamed "mysql-maximum-pool-size" to "maximum-pool-size"

This commit is contained in:
Intelli 2023-07-17 17:33:57 -06:00
parent 1331b8d0c5
commit 1dd293c5a4
3 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ public class Config extends Language {
public boolean UNKNOWN_LOGGING; public boolean UNKNOWN_LOGGING;
public boolean USERNAME_CHANGES; public boolean USERNAME_CHANGES;
public boolean WORLDEDIT; public boolean WORLDEDIT;
public int MYSQL_MAXIMUM_POOL_SIZE; public int MAXIMUM_POOL_SIZE;
public int MYSQL_PORT; public int MYSQL_PORT;
public int DEFAULT_RADIUS; public int DEFAULT_RADIUS;
public int MAX_RADIUS; public int MAX_RADIUS;
@ -198,6 +198,7 @@ public class Config extends Language {
this.EXCLUDE_TNT = this.getBoolean("exclude-tnt", false); this.EXCLUDE_TNT = this.getBoolean("exclude-tnt", false);
this.NETWORK_DEBUG = this.getBoolean("network-debug", false); this.NETWORK_DEBUG = this.getBoolean("network-debug", false);
this.UNKNOWN_LOGGING = this.getBoolean("unknown-logging", false); this.UNKNOWN_LOGGING = this.getBoolean("unknown-logging", false);
this.MAXIMUM_POOL_SIZE = this.getInt("maximum-pool-size", 10);
this.DONATION_KEY = this.getString("donation-key"); this.DONATION_KEY = this.getString("donation-key");
this.MYSQL = this.getBoolean("use-mysql"); this.MYSQL = this.getBoolean("use-mysql");
this.PREFIX = this.getString("table-prefix"); this.PREFIX = this.getString("table-prefix");
@ -206,7 +207,6 @@ public class Config extends Language {
this.MYSQL_DATABASE = this.getString("mysql-database"); this.MYSQL_DATABASE = this.getString("mysql-database");
this.MYSQL_USERNAME = this.getString("mysql-username"); this.MYSQL_USERNAME = this.getString("mysql-username");
this.MYSQL_PASSWORD = this.getString("mysql-password"); this.MYSQL_PASSWORD = this.getString("mysql-password");
this.MYSQL_MAXIMUM_POOL_SIZE = this.getInt("mysql-maximum-pool-size", 10);
this.LANGUAGE = this.getString("language"); this.LANGUAGE = this.getString("language");
this.CHECK_UPDATES = this.getBoolean("check-updates"); this.CHECK_UPDATES = this.getBoolean("check-updates");
this.API_ENABLED = this.getBoolean("api-enabled"); this.API_ENABLED = this.getBoolean("api-enabled");

View File

@ -176,7 +176,7 @@ public class ConfigHandler extends Queue {
ConfigHandler.database = Config.getGlobal().MYSQL_DATABASE; ConfigHandler.database = Config.getGlobal().MYSQL_DATABASE;
ConfigHandler.username = Config.getGlobal().MYSQL_USERNAME; ConfigHandler.username = Config.getGlobal().MYSQL_USERNAME;
ConfigHandler.password = Config.getGlobal().MYSQL_PASSWORD; ConfigHandler.password = Config.getGlobal().MYSQL_PASSWORD;
ConfigHandler.maximumPoolSize = Config.getGlobal().MYSQL_MAXIMUM_POOL_SIZE; ConfigHandler.maximumPoolSize = Config.getGlobal().MAXIMUM_POOL_SIZE;
ConfigHandler.prefix = Config.getGlobal().PREFIX; ConfigHandler.prefix = Config.getGlobal().PREFIX;
ConfigHandler.loadBlacklist(); // Load the blacklist file if it exists. ConfigHandler.loadBlacklist(); // Load the blacklist file if it exists.

View File

@ -79,7 +79,7 @@ public final class BlockFormListener extends Queue implements Listener {
} }
} }
} }
if (!log && Config.getConfig(world).UNKNOWN_LOGGING && Lookup.whoPlacedCache(block).length() == 0){ if (!log && Config.getConfig(world).UNKNOWN_LOGGING && Lookup.whoPlacedCache(block).length() == 0) {
Queue.queueBlockPlace("#unknown", block.getLocation().getBlock().getState(), block.getType(), block.getState(), newState.getType(), -1, 0, newState.getBlockData().getAsString()); Queue.queueBlockPlace("#unknown", block.getLocation().getBlock().getState(), block.getType(), block.getState(), newState.getType(), -1, 0, newState.getBlockData().getAsString());
} }
} }