mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +00:00
Fix invalid configuration section for world aliases (#4000)
This commit is contained in:
parent
81571fc014
commit
671983724a
1 changed files with 5 additions and 1 deletions
|
@ -550,7 +550,11 @@ public class Settings implements net.ess3.api.ISettings {
|
||||||
|
|
||||||
private Map<String, String> _getWorldAliases() {
|
private Map<String, String> _getWorldAliases() {
|
||||||
final Map<String, String> map = new HashMap<>();
|
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)) {
|
for (String world : section.getKeys(false)) {
|
||||||
map.put(world.toLowerCase(), FormatUtil.replaceFormat(section.getString(world)));
|
map.put(world.toLowerCase(), FormatUtil.replaceFormat(section.getString(world)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue