Class WearScanner

java.lang.Object
fr.andross.banitem.utils.scanners.WearScanner

public final class WearScanner extends Object
Async scanner to check if players wears a banned item. If a banned item is worn, a next sync task will be run to handle it.
Version:
3.1.1
Author:
Andross
  • Constructor Details

    • WearScanner

      public WearScanner(@NotNull @NotNull BanItem plugin, @NotNull @NotNull BanUtils utils)
      Prepare wear scanner.
      Parameters:
      plugin - The ban item plugin instance
      utils - The ban item plugin utility class
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Check if the wear scanner is enabled.
      Returns:
      true if the wear scanner is enabled, otherwise false.
    • setEnabled

      public void setEnabled(boolean enabled)
      Set if the wear scanner is enabled.
      Parameters:
      enabled - If the wear scanner should be enabled