mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 19:21:11 +02:00
Also recognize ProtocolLib versions just with build number prefix.
This commit is contained in:
parent
980af8d664
commit
a32bc257f3
|
@ -75,6 +75,9 @@ public class DefaultComponentFactory {
|
||||||
if (pV == null) {
|
if (pV == null) {
|
||||||
pV = GenericVersion.parseVersionDelimiters(_pV, "", "-snapshot");
|
pV = GenericVersion.parseVersionDelimiters(_pV, "", "-snapshot");
|
||||||
}
|
}
|
||||||
|
if (pV == null) {
|
||||||
|
pV = GenericVersion.parseVersionDelimiters(_pV, "", "-b");
|
||||||
|
}
|
||||||
if (pV == null) {
|
if (pV == null) {
|
||||||
// TODO: Was another (specific) attempt parsing planned here !?
|
// TODO: Was another (specific) attempt parsing planned here !?
|
||||||
StaticLog.logWarning("Could not interpret the version of ProtocolLib, won't activate hooks.");
|
StaticLog.logWarning("Could not interpret the version of ProtocolLib, won't activate hooks.");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user