diff --git a/pom.xml b/pom.xml
index 47db2cb..56dfd76 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,13 +2,13 @@
4.0.0
net.h31ix.anticheat
AntiCheat
- 1.4
+ 1.5
AntiCheat
http://gravitydevelopment.net
bukkit-repo
- http://repo.bukkit.org/content/repositories/snapshots
+ http://repo.bukkit.org/content/repositories/releases
@@ -43,7 +43,7 @@
org.bukkit
bukkit
- 1.4.5-R0.3-20121210.013948-18
+ 1.4.5-R1.0
jar
compile
diff --git a/src/main/java/net/h31ix/anticheat/Anticheat.java b/src/main/java/net/h31ix/anticheat/Anticheat.java
index 7ab9fba..8f5015c 100644
--- a/src/main/java/net/h31ix/anticheat/Anticheat.java
+++ b/src/main/java/net/h31ix/anticheat/Anticheat.java
@@ -38,6 +38,7 @@ import net.h31ix.anticheat.util.Utilities;
import net.h31ix.anticheat.xray.XRayListener;
import net.h31ix.anticheat.xray.XRayTracker;
import org.bukkit.ChatColor;
+import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
@@ -71,6 +72,20 @@ public class Anticheat extends JavaPlugin
setupUpdater();
setupMetrics();
restoreLevels();
+ // Test for compatibility for 1.4.5-R1.0
+ try
+ {
+ Material.AIR.isSolid();
+ }
+ catch(NoSuchMethodError error)
+ {
+ getLogger().severe("You are using an outdated version of CraftBukkit that does not contain the API required for AntiCheat to run properly.");
+ getLogger().severe("Please update to CraftBukkit 1.4.5-R1.0 or higher by visiting dl.bukkit.org and hitting the green download button.");
+ getLogger().severe("AntiCheat will now be disabled, and will not protect your server until it is updated.");
+ getPluginLoader().disablePlugin(this);
+ return;
+ }
+ // End test
if (verbose)
{
getLogger().log(Level.INFO, "Finished loading.");