diff options
author | snowleo <schneeleo@gmail.com> | 2012-03-02 00:12:22 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-03-02 00:12:22 +0100 |
commit | b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c (patch) | |
tree | 88d6756a8cd4676f293ccfd33ff5e2149f7c0eff | |
parent | 49eb451a764f3d3cc57f673a4351788f56be5e5c (diff) | |
download | Essentials-b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c.tar Essentials-b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c.tar.gz Essentials-b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c.tar.lz Essentials-b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c.tar.xz Essentials-b9aecbe1d4aac5046c871bcb4439ea3ad11eee5c.zip |
Min version CB# 2004
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 24ac0ad6e..53a31bb35 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -66,7 +66,7 @@ import org.yaml.snakeyaml.error.YAMLException; public class Essentials extends JavaPlugin implements IEssentials { - public static final int BUKKIT_VERSION = 1988; + public static final int BUKKIT_VERSION = 2004; private static final Logger LOGGER = Logger.getLogger("Minecraft"); private transient ISettings settings; private final transient TNTExplodeListener tntListener = new TNTExplodeListener(this); @@ -129,7 +129,7 @@ public class Essentials extends JavaPlugin implements IEssentials LOGGER.log(Level.WARNING, _("versionMismatch", plugin.getDescription().getName())); } } - final Matcher versionMatch = Pattern.compile("git-Bukkit-(?:(?:[0-9]+)\\.)+[0-9]+-R[0-9]+-(?:[0-9]+-g[0-9a-f]+-)?b([0-9]+)jnks.*").matcher(getServer().getVersion()); + final Matcher versionMatch = Pattern.compile("git-Bukkit-(?:(?:[0-9]+)\\.)+[0-9]+-R[\\.0-9]+-(?:[0-9]+-g[0-9a-f]+-)?b([0-9]+)jnks.*").matcher(getServer().getVersion()); if (versionMatch.matches()) { final int versionNumber = Integer.parseInt(versionMatch.group(1)); |