From 26ab9a327de97e342fe3e5b3389762f6081f1726 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 23 Jul 2021 22:14:14 +0100 Subject: [PATCH] Added warnings to invalid extensions --- .../com/willfp/eco/internal/extensions/EcoExtensionLoader.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eco-core/core-backend/src/main/java/com/willfp/eco/internal/extensions/EcoExtensionLoader.java b/eco-core/core-backend/src/main/java/com/willfp/eco/internal/extensions/EcoExtensionLoader.java index b382ff9b1..59af6d570 100644 --- a/eco-core/core-backend/src/main/java/com/willfp/eco/internal/extensions/EcoExtensionLoader.java +++ b/eco-core/core-backend/src/main/java/com/willfp/eco/internal/extensions/EcoExtensionLoader.java @@ -82,14 +82,17 @@ private void loadExtension(@NotNull final File extensionJar) throws MalformedExt } if (name == null) { + this.getPlugin().getLogger().warning(extensionJar.getName() + " doesn't have a name!"); name = "Unnamed Extension " + extensionJar.getName(); } if (version == null) { + this.getPlugin().getLogger().warning(extensionJar.getName() + " doesn't have a version!"); version = "1.0.0"; } if (author == null) { + this.getPlugin().getLogger().warning(extensionJar.getName() + " doesn't have an author!"); author = "Unnamed Author"; }