mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
If "sethome-multiple" config section is invalid, silently fallback to default config values.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user