From dc83bdb17ca4a22e896601f4f7d788e027eb5965 Mon Sep 17 00:00:00 2001 From: Evenprime Date: Sun, 20 Feb 2011 11:58:15 +0100 Subject: [PATCH] Version 0.5.2 - minor changes before release --- plugin.yml | 2 +- src/cc/co/evenprime/bukkit/nocheat/MovingCheck.java | 1 - src/cc/co/evenprime/bukkit/nocheat/NoCheatPlugin.java | 1 - .../evenprime/bukkit/nocheat/NoCheatPluginPlayerListener.java | 4 ++-- .../bukkit/nocheat/NoCheatPluginVehicleListener.java | 4 ++-- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/plugin.yml b/plugin.yml index 14101242..be14f216 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,5 +3,5 @@ name: NoCheatPlugin author: Evenprime main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin -version: 0.5.1b +version: 0.5.2 diff --git a/src/cc/co/evenprime/bukkit/nocheat/MovingCheck.java b/src/cc/co/evenprime/bukkit/nocheat/MovingCheck.java index ddcc59e9..d7d6f86d 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/MovingCheck.java +++ b/src/cc/co/evenprime/bukkit/nocheat/MovingCheck.java @@ -264,7 +264,6 @@ public class MovingCheck { if(data.minorViolationsInARow == 0) { // Store the source location for later use data.movingSetBackPoint = event.getFrom().clone(); - System.out.println("RESET point recorded: "+data.movingSetBackPoint); } data.minorViolationsInARow++; diff --git a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPlugin.java b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPlugin.java index db54e77a..d7c2fca8 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPlugin.java +++ b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPlugin.java @@ -53,7 +53,6 @@ public class NoCheatPlugin extends JavaPlugin { pm.registerEvent(Event.Type.VEHICLE_EXIT, vehicleListener, Priority.Monitor, this); pm.registerEvent(Event.Type.VEHICLE_DAMAGE, vehicleListener, Priority.Monitor, this); - PluginDescriptionFile pdfFile = this.getDescription(); Logger.getLogger("Minecraft").info( "NoCheat version " + pdfFile.getVersion() + " is enabled!" ); diff --git a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginPlayerListener.java b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginPlayerListener.java index dcf0f758..43720103 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginPlayerListener.java +++ b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginPlayerListener.java @@ -55,11 +55,11 @@ public class NoCheatPluginPlayerListener extends PlayerListener { } - public void ingoreNextXEvents(Entity player) { + public void ingoreNextXEvents(Entity player, int count) { NoCheatPluginData data = playerData.get(player); if(data != null) { - data.ignoreNextXEvents = 1; + data.ignoreNextXEvents = count; } } diff --git a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginVehicleListener.java b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginVehicleListener.java index ccb37ca3..450ea4f1 100644 --- a/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginVehicleListener.java +++ b/src/cc/co/evenprime/bukkit/nocheat/NoCheatPluginVehicleListener.java @@ -22,11 +22,11 @@ public class NoCheatPluginVehicleListener extends VehicleListener { @Override public void onVehicleExit(VehicleExitEvent event) { - playerListener.ingoreNextXEvents(event.getExited()); + playerListener.ingoreNextXEvents(event.getExited(), 1); } public void onVehicleDamage(VehicleDamageEvent event) { - playerListener.ingoreNextXEvents(event.getVehicle().getPassenger()); + playerListener.ingoreNextXEvents(event.getVehicle().getPassenger(), 1); } } \ No newline at end of file