mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-03-29 16:26:50 +01:00
Renamed "mysql-maximum-pool-size" to "maximum-pool-size"
This commit is contained in:
parent
1331b8d0c5
commit
1dd293c5a4
@ -89,7 +89,7 @@ public class Config extends Language {
|
||||
public boolean UNKNOWN_LOGGING;
|
||||
public boolean USERNAME_CHANGES;
|
||||
public boolean WORLDEDIT;
|
||||
public int MYSQL_MAXIMUM_POOL_SIZE;
|
||||
public int MAXIMUM_POOL_SIZE;
|
||||
public int MYSQL_PORT;
|
||||
public int DEFAULT_RADIUS;
|
||||
public int MAX_RADIUS;
|
||||
@ -198,6 +198,7 @@ public class Config extends Language {
|
||||
this.EXCLUDE_TNT = this.getBoolean("exclude-tnt", false);
|
||||
this.NETWORK_DEBUG = this.getBoolean("network-debug", 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.MYSQL = this.getBoolean("use-mysql");
|
||||
this.PREFIX = this.getString("table-prefix");
|
||||
@ -206,7 +207,6 @@ public class Config extends Language {
|
||||
this.MYSQL_DATABASE = this.getString("mysql-database");
|
||||
this.MYSQL_USERNAME = this.getString("mysql-username");
|
||||
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.CHECK_UPDATES = this.getBoolean("check-updates");
|
||||
this.API_ENABLED = this.getBoolean("api-enabled");
|
||||
|
@ -176,7 +176,7 @@ public class ConfigHandler extends Queue {
|
||||
ConfigHandler.database = Config.getGlobal().MYSQL_DATABASE;
|
||||
ConfigHandler.username = Config.getGlobal().MYSQL_USERNAME;
|
||||
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.loadBlacklist(); // Load the blacklist file if it exists.
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user