mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Update for CB 1.4.5-R1.0 RB, add compatibility test to prevent use of outdated builds.
USE THIS BUILD AS A TEST FOR AC 1.5 RELEASE.
This commit is contained in:
1 parent
e59cbdee65
commit
ced8782a15
2 files changed
+18
-3
No files matched your search
@@ -2,13 +2,13 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.h31ix.anticheat</groupId>
|
<groupId>net.h31ix.anticheat</groupId>
|
||||||
<artifactId>AntiCheat</artifactId>
|
<artifactId>AntiCheat</artifactId>
|
||||||
<version>1.4</version>
|
<version>1.5</version>
|
||||||
<name>AntiCheat</name>
|
<name>AntiCheat</name>
|
||||||
<url>http://gravitydevelopment.net</url>
|
<url>http://gravitydevelopment.net</url>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>bukkit-repo</id>
|
<id>bukkit-repo</id>
|
||||||
<url>http://repo.bukkit.org/content/repositories/snapshots</url>
|
<url>http://repo.bukkit.org/content/repositories/releases</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
<build>
|
<build>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>bukkit</artifactId>
|
<artifactId>bukkit</artifactId>
|
||||||
<version>1.4.5-R0.3-20121210.013948-18</version>
|
<version>1.4.5-R1.0</version>
|
||||||
<type>jar</type>
|
<type>jar</type>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ import net.h31ix.anticheat.util.Utilities;
|
|||||||
import net.h31ix.anticheat.xray.XRayListener;
|
import net.h31ix.anticheat.xray.XRayListener;
|
||||||
import net.h31ix.anticheat.xray.XRayTracker;
|
import net.h31ix.anticheat.xray.XRayTracker;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
@@ -71,6 +72,20 @@ public class Anticheat extends JavaPlugin
|
|||||||
setupUpdater();
|
setupUpdater();
|
||||||
setupMetrics();
|
setupMetrics();
|
||||||
restoreLevels();
|
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)
|
if (verbose)
|
||||||
{
|
{
|
||||||
getLogger().log(Level.INFO, "Finished loading.");
|
getLogger().log(Level.INFO, "Finished loading.");
|
||||||
|
|||||||
Reference in new issue
Block a user