Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
shulng committed Jul 31, 2024
1 parent 2a21cae commit ae07e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/cc/baka9/catseedlogin/bukkit/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public static void load(){
AfterLoginBack = config.getBoolean("AfterLoginBack", resourceConfig.getBoolean("AfterLoginBack"));
CanTpSpawnLocation = config.getBoolean("CanTpSpawnLocation", resourceConfig.getBoolean("CanTpSpawnLocation"));
List<String> commandWhiteList = config.getStringList("CommandWhiteList");
if (commandWhiteList.size() == 0) {
if (commandWhiteList.isEmpty()) {
commandWhiteList = resourceConfig.getStringList("CommandWhiteList");
}
Settings.CommandWhiteList.clear();
Settings.CommandWhiteList.addAll(commandWhiteList.stream().map(Pattern::compile).collect(Collectors.toList()));
AutoKick = config.getInt("AutoKick", 120);
IPTimeout = config.getInt("IPTimeout", 120);
IPTimeout = config.getInt("IPTimeout", 5);
SpawnLocation = str2Location(config.getString("SpawnLocation"));
DeathStateQuitRecordLocation = config.getBoolean("DeathStateQuitRecordLocation", resourceConfig.getBoolean("DeathStateQuitRecordLocation"));
FloodgatePrefixProtect = config.getBoolean("FloodgatePrefixProtect", resourceConfig.getBoolean("FloodgatePrefixProtect"));
Expand Down

0 comments on commit ae07e78

Please sign in to comment.