Class ClickEventTracker

java.lang.Object
ch.njol.skript.bukkitutil.ClickEventTracker

public class ClickEventTracker extends Object
Tracks click events to remove extraneous events for one player click.
  • Constructor Details

    • ClickEventTracker

      public ClickEventTracker(JavaPlugin plugin)
  • Method Details

    • checkEvent

      public boolean checkEvent(Player player, Cancellable event, EquipmentSlot hand)
      Processes a click event from a player.
      Parameters:
      player - Player who caused it.
      event - The event.
      hand - Slot associated with the event.
      Returns:
      If the event should be passed to scripts.
    • eventModified

      public void eventModified(Cancellable event)
      Records that given event was cancelled or uncancelled.
      Parameters:
      event - The event.