Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Latest commit

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

SparkyAPI

API for Sparky Anticheat

!! THIS API IS CURRENTLY DEPRECATED, IT WILL NOT WORK WITH THE CURRENT VERSION OF SPARKY, USE THIS https://github.com/Sparky-Tech/SparkyAPIV2 !!

For developers: This API uses reflection because of my protection, don't abuse call theses methods or it may cause lag

Documentation:

SparkyAPI.isAntichetEnabled() - Returns a boolean if the anticheat is enabled or not
SparkyAPI.setAnticheatEnabled(boolean enabled) - Sets the state for the anticheat being enabled or not
SparkyAPI.getPing(Player player) - Returns the player's ping from the anticheat
SparkyAPI.isLagging(Player player) - Returns if the player is lagging
SparkyAPI.setCheckState(String checkName, boolean enabled) - Enables / disables a check (this defaults the check type A)
SparkyAPI.setCheckState(String checkName, String type, boolean enabled) - Enables / disables a check
SparkyAPI.reloadConfig() - Reload's the anticheats config
SparkyAPI.getVersion() - Returns the current version of the anticheat
SparkyAPI.getServerVersion() - Returns the server's version
SparkyAPI.exemptPlayer(Player player, int ticks) - Returns the anticheats checks for a specific player
and for a specific amount of ticks (NOTE: 20 ticks = 1 second)
SparkyAPI.resetExempt(Player player) - Resets the players exempt ticks

Maven:

 <repositories>
<repository>
<id>funkemunky-releases</id>
<url>https://nexus.funkemunky.cc/content/repositories/releases/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>ac.sparky</groupId>
<artifactId>API</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

About

API for Sparky Anticheat

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages