Package net.crux.ac.api
Interface CruxAPI
public interface CruxAPI
Main public entry point for the Crux AntiCheat Developer API.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CruxAPIget()Static accessor for CruxAPI instance.Gets the Exemption API manager.Gets the CruxPlayer wrapper for the specified player UUID.default CruxPlayergetPlayer(org.bukkit.entity.Player player) Gets the CruxPlayer wrapper for a Bukkit Player.Returns the current API and plugin version string.booleanisCheckEnabled(String checkName, String variant) Checks if a specific check is currently enabled.voidsetCheckEnabled(String checkName, String variant, boolean enabled) Dynamically enables or disables a specific check.
-
Method Details
-
getPlayer
Gets the CruxPlayer wrapper for the specified player UUID.- Parameters:
uuid- Player UUID- Returns:
- CruxPlayer wrapper, or null if the player has no active session profile
-
getPlayer
Gets the CruxPlayer wrapper for a Bukkit Player.- Parameters:
player- Bukkit Player- Returns:
- CruxPlayer wrapper, or null if the player has no active profile
-
getExemptions
CruxExemptionAPI getExemptions()Gets the Exemption API manager. -
isCheckEnabled
Checks if a specific check is currently enabled.- Parameters:
checkName- Name of the check (e.g. "Flight", "Speed", "Step")variant- Variant identifier (e.g. "A", "B") or empty string
-
setCheckEnabled
Dynamically enables or disables a specific check. -
getVersion
String getVersion()Returns the current API and plugin version string. -
get
Static accessor for CruxAPI instance.
-