-
Notifications
You must be signed in to change notification settings - Fork 0
API
Justin_SGD edited this page Feb 1, 2026
·
11 revisions
To use the JuByteCaseAPI in your project, add it as dependency in your pom.xml or build.gradle.
<repositories>
<repository>
<id>jubyte</id>
<name>JuByte</name>
<url>https://repo.jubyte.com/artifactory/jubyte/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.jubyte.caseopening</groupId>
<artifactId>JuByteCaseApi</artifactId>
<version>1.10.2-RELEASE</version>
</dependency>
</dependencies>repositories {
maven { url 'https://repo.jubyte.com/artifactory/jubyte/' }
}
dependencies {
implementation 'com.jubyte.caseopening:JuByteCaseApi:1.10.2-RELEASE'
}The API interacts with the installed JuByteCase plugin, so the plugin must be present on the server.
import com.jubyte.caseopening.api.CaseAPI;
CaseAPI api = CaseAPI.getInstance();From there you can access player and log APIs:
import com.jubyte.caseopening.api.player.CasePlayerAPI;
import com.jubyte.caseopening.api.log.CaseLogAPI;
CasePlayerAPI playerApi = api.getCasePlayerApi();
CaseLogAPI logApi = api.getCaseLogApi();int amount = playerApi.getCaseAmount(uuid, "vote");
playerApi.setCaseAmount(uuid, 10, "vote");
playerApi.addCaseAmount(uuid, 5, "vote");
playerApi.removeCaseAmount(uuid, 3, "vote");logApi.getCaseLog(uuid);
logApi.getCaseLog(uuid, "vote");