GrimAnticheat / GrimAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GrimAPI

A work in progress API for Grim Anticheat

You can find the latest version here: https://jitpack.io/#GrimAnticheat/GrimAPI

Gradle:

repositories {
    maven("https://jitpack.io/") { // Grim API
        content {
            includeGroup("com.github.grimanticheat")
        }
    }
}

dependencies {
    compileOnly 'com.github.grimanticheat:grimapi:VERSION'
}

Maven:

<repository>
   <id>jitpack.io</id>
   <url>https://jitpack.io</url>
</repository>
  
<dependency>
   <groupId>com.github.grimanticheat</groupId>
   <artifactId>GrimAPI</artifactId>
   <version>VERSION</version>
   <scope>provided</scope>
</dependency>

Obtaining an instance of the API:

RegisteredServiceProvider<GrimAbstractAPI> provider = Bukkit.getServicesManager().getRegistration(GrimAbstractAPI.class);
if (provider != null) {
    GrimAbstractAPI api = provider.getProvider();
}

About


Languages

Language:Java 100.0%