From 671983724aee349be9c31cccc60c65b188c29e20 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Sun, 21 Feb 2021 00:09:34 -0500 Subject: [PATCH] Fix invalid configuration section for world aliases (#4000) --- .../src/main/java/com/earth2me/essentials/Settings.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/Settings.java b/Essentials/src/main/java/com/earth2me/essentials/Settings.java index 972fee7f5..e4b655844 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/Settings.java +++ b/Essentials/src/main/java/com/earth2me/essentials/Settings.java @@ -550,7 +550,11 @@ public class Settings implements net.ess3.api.ISettings { private Map _getWorldAliases() { final Map 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))); }