diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/InventoryManager.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/InventoryManager.java index 56953b6b..4d931033 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/InventoryManager.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/InventoryManager.java @@ -44,11 +44,11 @@ public class InventoryManager { list.forEach(inv -> { String folder="gui"+(inv instanceof ClassConfirmation?"/class-confirm":""); - MMOCore.plugin.configManager.loadDefaultFile(folder, inv.getId() + ".yml"); try { + MMOCore.plugin.configManager.loadDefaultFile(folder, inv.getId() + ".yml"); inv.reload(new ConfigFile("/"+folder, inv.getId()).getConfig()); } catch (Exception exception) { - MMOCore.log(Level.WARNING, "Could not load inventory '" + inv.getId() + "': " + exception.getMessage()); + MMOCore.log(Level.WARNING, "Could not load inventory '" +(inv instanceof ClassConfirmation?"class-confirm/":""+ inv.getId() + "': " + exception.getMessage())); } }); }