mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
Unknown git commit or version = unknown version sig
This commit is contained in:
parent
0b7789035f
commit
a9b2660aa8
@ -25,6 +25,11 @@ public class ModuleVersion
|
||||
String buildNumber = version.substring( lastColon + 1, version.length() );
|
||||
String gitCommit = version.substring( secondLastColon + 1, lastColon ).replaceAll( "\"", "" );
|
||||
|
||||
if ( "unknown".equals( buildNumber ) || "unknown".equals( gitCommit ) )
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return new ModuleVersion( buildNumber, gitCommit );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user