Class WearScanner
java.lang.Object
fr.andross.banitem.utils.scanners.WearScanner
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 Summary
ConstructorsConstructorDescriptionWearScanner
(@NotNull BanItem plugin, @NotNull BanUtils utils) Prepare wear scanner. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the wear scanner is enabled.void
setEnabled
(boolean enabled) Set if the wear scanner is enabled.
-
Constructor Details
-
WearScanner
Prepare wear scanner.- Parameters:
plugin
- The ban item plugin instanceutils
- 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
-