This page is about how to import the LifeStealZ API into your project and how to use it.

Importing the API

To use the LifeStealZ API, you need to add it as a dependency in your project.

Add the following to your pom.xml file:

<repositories>
    <repository>
        <id>zetaplugins</id>
        <url>https://maven.zetaplugins.com/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.zetaplugins</groupId>
        <artifactId>lifestealz</artifactId>
        <version>1.0.0</version> <!-- Replace with the latest version -->
        <scope>provided</scope>
    </dependency>
</dependencies>

You can find the latest version in the GitHub releases or a list of all available versions on the ZetaPlugins Maven page.

Adding LifeStealZ as a (soft)dependency

To add LifeStealZ as a (soft)dependency in your plugin, you cann add it to your plugin.yml or paper-plugin.yml file:

name: YourPluginName
version: 1.0
author: author
main: com.yourplugin.MainClass

depend: [LifeStealZ] # Use 'softdepend' instead for soft dependency

What can you do with the API?

If you want to learn, what you can do with the LifeStealZ api, please refer to the following documentation pages or the JavaDoc.