mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 11:10:05 +01: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
|
author: Evenprime
|
||||||
|
|
||||||
main: cc.co.evenprime.bukkit.nocheat.NoCheatPlugin
|
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) {
|
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++;
|
||||||
|
@ -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!" );
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user