Class AntiCheatHookAntiAura

java.lang.Object
wtf.choco.veinminer.anticheat.AntiCheatHookAntiAura
All Implemented Interfaces:
AntiCheatHook

public final class AntiCheatHookAntiAura extends Object implements AntiCheatHook
The default AntiAura hook implementation.
  • Constructor Details

    • AntiCheatHookAntiAura

      public AntiCheatHookAntiAura(@NotNull @NotNull VeinMinerPlugin plugin)
  • Method Details

    • exempt

      public void exempt(@NotNull @NotNull Player player)
      Description copied from interface: AntiCheatHook
      Exempt a player from a fast-break check in the hooked anti cheat.
      Specified by:
      exempt in interface AntiCheatHook
      Parameters:
      player - the player to exempt
    • unexempt

      public void unexempt(@NotNull @NotNull Player player)
      Description copied from interface: AntiCheatHook
      Unexempt a player from a fast-break check in the hooked anti cheat.
      Specified by:
      unexempt in interface AntiCheatHook
      Parameters:
      player - the player to unexempt
    • shouldUnexempt

      public boolean shouldUnexempt(@NotNull @NotNull Player player)
      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 of AntiCheatHookNCP, this method returns false if the player was exempted prior to the execution of AntiCheatHook.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 interface AntiCheatHook
      Parameters:
      player - the player to check
      Returns:
      true if should unexempt, false otherwise
    • isSupported

      public boolean isSupported()
      Description copied from interface: AntiCheatHook
      Check whether or not this anti cheat hook is supported. This should return false if, for example in AntiAura, an API method to exempt players was added in a later version of the anti cheat plugin
      Specified by:
      isSupported in interface AntiCheatHook
      Returns:
      true if supported, false otherwise