mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 14:13:47 +01:00
Search for bungee.yml and then plugin.yml for Bungee plugins.
This commit is contained in:
parent
ddab9a84c4
commit
1f1cdb47e4
@ -308,8 +308,12 @@ public class PluginManager
|
||||
{
|
||||
try ( JarFile jar = new JarFile( file ) )
|
||||
{
|
||||
JarEntry pdf = jar.getJarEntry( "plugin.yml" );
|
||||
Preconditions.checkNotNull( pdf, "Plugin must have a plugin.yml" );
|
||||
JarEntry pdf = jar.getJarEntry( "bungee.yml" );
|
||||
if ( pdf == null )
|
||||
{
|
||||
pdf = jar.getJarEntry( "plugin.yml" );
|
||||
}
|
||||
Preconditions.checkNotNull( pdf, "Plugin must have a plugin.yml or bungee.yml" );
|
||||
|
||||
try ( InputStream in = jar.getInputStream( pdf ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user