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 Summary

    Constructors 
    Constructor Description
    AntiCheatHookAntiAura()  
  • Method Summary

    Modifier and Type Method Description
    void exempt​(@NotNull org.bukkit.entity.Player player)
    Exempt a player from a fast-break check in the hooked anticheat
    @NotNull String getPluginName()
    Get the name of the plugin representing this hook
    boolean isSupported()
    Check whether this anticheat hook is supported or not.
    boolean shouldUnexempt​(@NotNull org.bukkit.entity.Player player)
    Check whether the provided player should be unexempted.
    void unexempt​(@NotNull org.bukkit.entity.Player player)
    Unexempt a player from a fast-break check in the hooked anticheat

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getPluginName

      @NotNull public @NotNull String getPluginName()
      Description copied from interface: AntiCheatHook
      Get the name of the plugin representing this hook
      Specified by:
      getPluginName in interface AntiCheatHook
      Returns:
      this plugin hook
    • exempt

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

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

      public boolean shouldUnexempt​(@NotNull @NotNull org.bukkit.entity.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
      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 this anticheat hook is supported or not. This should return false if, for example in AntiAura, an API method to exempt players was added in a later version of the anticheat plugin
      Specified by:
      isSupported in interface AntiCheatHook
      Returns:
      true if supported, false otherwise