β˜•API

How to use EpicGuard's API.

Adding Gradle/Maven dependency

EpicGuard's artifacts are distributed on JitPack so you have to also add it as a repository.

Gradle Setup (build.gradle)

repositories {
    maven { 
        url 'https://jitpack.io'
     }
}

dependencies {
    compileOnly 'com.github.xxneox.EpicGuard:epicguard-core:6.0.0'
}

Maven Setup (pom.xml)

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.xxneox.EpicGuard</groupId>
        <artifactId>epicguard-core</artifactId>
        <version>6.0.0</version>
    </dependency>
</dependencies>

Accessing the API

circle-info

Make sure that EpicGuard is fully loaded before using any methods from the API. While you can obtain the instance of EpicGuardAPI, trying to use any methods will throw an exception, if EpicGuard is not initialized yet.

The EpicGuardAPI class is located in the me.xneox.epicguard.core package. This is how you can obtain an instance of the API.

API methods

Here are the methods available for use. If you feel like there's something missing in here, contact us in our support Discord.

Exampleschevron-right

Last updated

Was this helpful?