Class AntiCheatHookSpartan

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

public final class AntiCheatHookSpartan
extends Object
implements AntiCheatHook
The default Spartan hook implementation
  • Constructor Summary

    Constructors 
    Constructor Description
    AntiCheatHookSpartan()  
  • 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 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

    Methods inherited from interface wtf.choco.veinminer.anticheat.AntiCheatHook

    isSupported
  • 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