Fix pcgf plugin lib version check

This commit is contained in:
GeorgH93 2023-02-23 21:05:02 +01:00
parent 749676c1a9
commit 48b2029183
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 3 deletions

View File

@ -85,15 +85,14 @@ private boolean checkPcgfPluginLib(final @NotNull PluginProviderContext context)
String version = PCGF_PluginLibVersionDetection.getVersionBukkit(); String version = PCGF_PluginLibVersionDetection.getVersionBukkit();
if (version != null) if (version != null)
{ {
if (new Version(version).olderThan(new Version(MagicValues.MIN_PCGF_PLUGIN_LIB_VERSION))) if (new Version(version).olderThan(new Version(MagicValues.MIN_PCGF_PLUGIN_LIB_VERSION)))
{ {
context.getLogger().info("PCGF-PluginLib to old! Switching to standalone mode!"); context.getLogger().info("PCGF-PluginLib to old! Switching to standalone mode!");
return true;
} }
else else
{ {
context.getLogger().info("PCGF-PluginLib installed. Switching to normal mode!"); context.getLogger().info("PCGF-PluginLib installed. Switching to normal mode!");
return true;
} }
} }
else else

View File

@ -7,7 +7,7 @@
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
<revision>2.4.13</revision> <revision>2.4.13.1</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>