mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 11:11:10 +02:00
Version 0.5.2 - minor changes before release
This commit is contained in:
parent
2daeabc157
commit
dc83bdb17c
|
@ -3,5 +3,5 @@ name: NoCheatPlugin
|
|||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
|
||||
version: 0.5.1b
|
||||
version: 0.5.2
|
||||
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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!" );
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user