diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index c7bfddce3..2426bdb42 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -347,6 +347,9 @@ public class PluginManager try ( InputStream in = jar.getInputStream( pdf ) ) { PluginDescription desc = yaml.loadAs( in, PluginDescription.class ); + Preconditions.checkNotNull( desc.getName(), "Plugin from %s has no name", file ); + Preconditions.checkNotNull( desc.getMain(), "Plugin from %s has no main", file ); + desc.setFile( file ); toLoad.put( desc.getName(), desc ); }