Version 0.5.2 - minor changes before release

This commit is contained in:
Evenprime 2011-02-20 11:58:15 +01:00
parent 2daeabc157
commit dc83bdb17c
5 changed files with 5 additions and 7 deletions

View File

@ -3,5 +3,5 @@ name: NoCheatPlugin
author: Evenprime author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
version: 0.5.1b version: 0.5.2

View File

@ -264,7 +264,6 @@ public class MovingCheck {
if(data.minorViolationsInARow == 0) { if(data.minorViolationsInARow == 0) {
// Store the source location for later use // Store the source location for later use
data.movingSetBackPoint = event.getFrom().clone(); data.movingSetBackPoint = event.getFrom().clone();
System.out.println("RESET point recorded: "+data.movingSetBackPoint);
} }
data.minorViolationsInARow++; data.minorViolationsInARow++;

View File

@ -53,7 +53,6 @@ public class NoCheatPlugin extends JavaPlugin {
pm.registerEvent(Event.Type.VEHICLE_EXIT, vehicleListener, Priority.Monitor, this); pm.registerEvent(Event.Type.VEHICLE_EXIT, vehicleListener, Priority.Monitor, this);
pm.registerEvent(Event.Type.VEHICLE_DAMAGE, vehicleListener, Priority.Monitor, this); pm.registerEvent(Event.Type.VEHICLE_DAMAGE, vehicleListener, Priority.Monitor, this);
PluginDescriptionFile pdfFile = this.getDescription(); PluginDescriptionFile pdfFile = this.getDescription();
Logger.getLogger("Minecraft").info( "NoCheat version " + pdfFile.getVersion() + " is enabled!" ); Logger.getLogger("Minecraft").info( "NoCheat version " + pdfFile.getVersion() + " is enabled!" );

View File

@ -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); NoCheatPluginData data = playerData.get(player);
if(data != null) { if(data != null) {
data.ignoreNextXEvents = 1; data.ignoreNextXEvents = count;
} }
} }

View File

@ -22,11 +22,11 @@ public class NoCheatPluginVehicleListener extends VehicleListener {
@Override @Override
public void onVehicleExit(VehicleExitEvent event) { public void onVehicleExit(VehicleExitEvent event) {
playerListener.ingoreNextXEvents(event.getExited()); playerListener.ingoreNextXEvents(event.getExited(), 1);
} }
public void onVehicleDamage(VehicleDamageEvent event) { public void onVehicleDamage(VehicleDamageEvent event) {
playerListener.ingoreNextXEvents(event.getVehicle().getPassenger()); playerListener.ingoreNextXEvents(event.getVehicle().getPassenger(), 1);
} }
} }