Package wtf.choco.veinminer.anticheat
Class AntiCheatHookNCP
java.lang.Object
wtf.choco.veinminer.anticheat.AntiCheatHookNCP
- All Implemented Interfaces:
AntiCheatHook
The default NoCheatPlus (NCP) hook implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Exempt a player from a fast-break check in the hooked anti cheat.boolean
shouldUnexempt
(@NotNull Player player) Check whether the provided player should be unexempted.void
Unexempt a player from a fast-break check in the hooked anti cheat.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface wtf.choco.veinminer.anticheat.AntiCheatHook
isSupported
-
Constructor Details
-
AntiCheatHookNCP
-
-
Method Details
-
exempt
Description copied from interface:AntiCheatHook
Exempt a player from a fast-break check in the hooked anti cheat.- Specified by:
exempt
in interfaceAntiCheatHook
- Parameters:
player
- the player to exempt
-
unexempt
Description copied from interface:AntiCheatHook
Unexempt a player from a fast-break check in the hooked anti cheat.- Specified by:
unexempt
in interfaceAntiCheatHook
- Parameters:
player
- the player to unexempt
-
shouldUnexempt
Description copied from interface:AntiCheatHook
Check whether the provided player should be unexempted. This is a special-case method used to check if players should be unexempted under certain situations. For example, in the case ofAntiCheatHookNCP
, this method returns false if the player was exempted prior to the execution ofAntiCheatHook.exempt(Player)
and should not be unexempted.For anti cheats where temporary exemptions can be made, this method is not relevant and should be left implemented as default.
- Specified by:
shouldUnexempt
in interfaceAntiCheatHook
- Parameters:
player
- the player to check- Returns:
- true if should unexempt, false otherwise
-