mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Fix empty config values from old config
This commit is contained in:
parent
1273f26a64
commit
c011bb6be0
@ -23,6 +23,8 @@
|
|||||||
*/
|
*/
|
||||||
package com.djrapitops.plan.system.settings.config;
|
package com.djrapitops.plan.system.settings.config;
|
||||||
|
|
||||||
|
import com.djrapitops.plugin.utilities.Verify;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -294,7 +296,7 @@ public class ConfigNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Override value conditionally
|
// Override value conditionally
|
||||||
if (value == null && from.value != null) {
|
if (Verify.isEmpty(value) && from.value != null) {
|
||||||
value = from.value;
|
value = from.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,8 @@ Analysis:
|
|||||||
DestinationFolder: 'Analysis Results'
|
DestinationFolder: 'Analysis Results'
|
||||||
Data:
|
Data:
|
||||||
# How many minutes player has to stay still to be considered AFK
|
# How many minutes player has to stay still to be considered AFK
|
||||||
AFKThresholdMinutes: 3
|
# TEST: THIS NODE HAS BEEN INTENTIONALLY LEFT EMPTY TO TEST DEFAULT COPYING
|
||||||
|
AFKThresholdMinutes:
|
||||||
Commands:
|
Commands:
|
||||||
LogUnknownCommands: false
|
LogUnknownCommands: false
|
||||||
CombineCommandAliases: true
|
CombineCommandAliases: true
|
||||||
|
Loading…
Reference in New Issue
Block a user