Random Chicken Inventory.

This commit is contained in:
asofold 2013-12-31 01:36:38 +01:00
parent d0a1fe7da4
commit d51da2cbe0

View File

@ -29,6 +29,7 @@ import fr.neatmonster.nocheatplus.checks.CheckListener;
import fr.neatmonster.nocheatplus.checks.CheckType;
import fr.neatmonster.nocheatplus.checks.combined.Combined;
import fr.neatmonster.nocheatplus.checks.combined.Improbable;
import fr.neatmonster.nocheatplus.components.JoinLeaveListener;
import fr.neatmonster.nocheatplus.utilities.InventoryUtil;
/*
@ -54,7 +55,7 @@ import fr.neatmonster.nocheatplus.utilities.InventoryUtil;
*
* @see InventoryEvent
*/
public class InventoryListener extends CheckListener {
public class InventoryListener extends CheckListener implements JoinLeaveListener{
/** The drop check. */
private final Drop drop = addCheck(new Drop());
@ -352,6 +353,16 @@ public class InventoryListener extends CheckListener {
open.check(event.getPlayer());
}
@Override
public void playerJoins(Player player) {
// Ignore
}
@Override
public void playerLeaves(Player player) {
open.check(player);
}
// @EventHandler(priority = EventPriority.MONITOR)
// public void onVehicleDestroy(final VehicleDestroyEvent event) {
// final Entity entity = event.getVehicle();