mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
If "sethome-multiple" config section is invalid, silently fallback to default config values.
This commit is contained in:
parent
7804516793
commit
1690b9d83d
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ public class Settings implements net.ess3.api.ISettings
|
||||||
@Override
|
@Override
|
||||||
public Set<String> getMultipleHomes()
|
public Set<String> getMultipleHomes()
|
||||||
{
|
{
|
||||||
return config.getConfigurationSection("sethome-multiple").getKeys(false);
|
final ConfigurationSection section = config.getConfigurationSection("sethome-multiple");
|
||||||
|
return section == null ? null : section.getKeys(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue