Skip to content

Commit

Permalink
Added warnings to invalid extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jul 23, 2021
1 parent 0676f5f commit 26ab9a3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 26ab9a3

Please sign in to comment.