Skip to content

Commit

Permalink
Random Chicken Inventory.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Dec 31, 2013
1 parent d0a1fe7 commit d51da2c
Showing 1 changed file with 12 additions and 1 deletion.
Expand Up @@ -29,6 +29,7 @@
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;

/*
Expand All @@ -54,7 +55,7 @@
*
* @see InventoryEvent
*/
public class InventoryListener extends CheckListener {
public class InventoryListener extends CheckListener implements JoinLeaveListener{

/** The drop check. */
private final Drop drop = addCheck(new Drop());
Expand Down Expand Up @@ -351,6 +352,16 @@ public void onPlayerTeleport(final PlayerTeleportEvent event){
// Note: ignore cancelother setting.
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) {
Expand Down

0 comments on commit d51da2c

Please sign in to comment.