Skip to content
Evyatar edited this page Aug 2, 2022 · 6 revisions

Welcome!

This is PersistentsDataAPI's official wiki.

In this wiki, you'll find all information you have to know about the usage of the api.

Instalation

The following steps are mandatory for the API's operation.

This API is relatively easy to use.

First of all, you'll have to install the API's repository and dependency

Pom.xml

First, you'll have to add this repository and dependency to your pom.xml file in the requested project.

Repository:

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

Dependency:

<dependency>
<groupId>com.github.User</groupId>
    <artifactId>Repo</artifactId>
    <version>Tag</version>
</dependency>

After adding these, and reloading the pom.xml file, no error should be found.

Now the API can be initialized through the-

Main Class

When approaching the API, it should be approached from the main class and only the main class.

To initialize the API:

@Override
    public void onEnable() {
        PersistentDataAPI api = new PersistentDataAPI(this);

    }

The class persistentDataAPI accepts variables from the type JavaPlugin, which the main class extends.

Clone this wiki locally