Skip to content
Justin_SGD edited this page Feb 1, 2026 · 11 revisions

JuByteCaseAPI Installation

To use the JuByteCaseAPI in your project, add it as dependency in your pom.xml or build.gradle.

Maven

<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>

Gradle

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.


Registering JuByteCaseAPI in your Plugin

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();

Usage

Player cases

int amount = playerApi.getCaseAmount(uuid, "vote");
playerApi.setCaseAmount(uuid, 10, "vote");
playerApi.addCaseAmount(uuid, 5, "vote");
playerApi.removeCaseAmount(uuid, 3, "vote");

Logs

logApi.getCaseLog(uuid);
logApi.getCaseLog(uuid, "vote");

JuByteCase Wiki

Plugin Usage

Setup

API

Clone this wiki locally