mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
Cleaner error for plugins with no yaml.
This commit is contained in:
parent
b61758ca8e
commit
4c07fbf953
@ -153,6 +153,8 @@ public class PluginManager
|
||||
try (JarFile jar = new JarFile(file))
|
||||
{
|
||||
JarEntry pdf = jar.getJarEntry("plugin.yml");
|
||||
Preconditions.checkNotNull(pdf, "Plugin must have a plugin.yml");
|
||||
|
||||
try (InputStream in = jar.getInputStream(pdf))
|
||||
{
|
||||
PluginDescription desc = yaml.loadAs(in, PluginDescription.class);
|
||||
|
Loading…
Reference in New Issue
Block a user