mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Corrected version match for 1597 build version
This commit is contained in:
parent
58bebd851c
commit
64bc8d1133
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ public class Essentials extends JavaPlugin implements IEssentials
|
||||||
LOGGER.log(Level.WARNING, _("versionMismatch", plugin.getDescription().getName()));
|
LOGGER.log(Level.WARNING, _("versionMismatch", plugin.getDescription().getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final Matcher versionMatch = Pattern.compile("git-Bukkit-([0-9]+).([0-9]+).([0-9]+)-R[0-9]+-[0-9]+-[0-9a-z]+-b([0-9]+)jnks.*").matcher(getServer().getVersion());
|
final Matcher versionMatch = Pattern.compile("git-Bukkit-([0-9]+).([0-9]+).([0-9]+)-R[0-9]+-b([0-9]+)jnks.*").matcher(getServer().getVersion());
|
||||||
if (versionMatch.matches())
|
if (versionMatch.matches())
|
||||||
{
|
{
|
||||||
final int versionNumber = Integer.parseInt(versionMatch.group(4));
|
final int versionNumber = Integer.parseInt(versionMatch.group(4));
|
||||||
|
|
Loading…
Reference in a new issue