mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-15 07:05:52 +01:00
Fix invalid configuration section for world aliases (#4000)
This commit is contained in:
parent
81571fc014
commit
671983724a
@ -550,7 +550,11 @@ public class Settings implements net.ess3.api.ISettings {
|
||||
|
||||
private Map<String, String> _getWorldAliases() {
|
||||
final Map<String, String> map = new HashMap<>();
|
||||
final ConfigurationSection section = config.getConfigurationSection("");
|
||||
final ConfigurationSection section = config.getConfigurationSection("chat.world-aliases");
|
||||
if (section == null) {
|
||||
return map;
|
||||
}
|
||||
|
||||
for (String world : section.getKeys(false)) {
|
||||
map.put(world.toLowerCase(), FormatUtil.replaceFormat(section.getString(world)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user