-
Notifications
You must be signed in to change notification settings - Fork 0
Home
This is PersistentsDataAPI's official wiki.
In this wiki, you'll find all information you have to know about the usage of the api.
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
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-
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.