### Get PlayerPoints API Instance Source: https://github.com/rosewood-development/playerpoints/wiki/API-Getting-Started Obtain an instance of the PlayerPointsAPI within your Java plugin. It's crucial to check if the PlayerPoints plugin is enabled before attempting to get the API instance. ```java import org.black_ixx.PlayerPointsAPI; import org.bukkit.Bukkit; import org.bukkit.plugin.java.JavaPlugin; public class Example extends JavaPlugin { private PlayerPointsAPI ppAPI; @Override public void onEnable() { if (Bukkit.getPluginManager().isPluginEnabled("PlayerPoints")) { this.ppAPI = PlayerPoints.getInstance().getAPI(); } // When you want to access the API, check if the instance is null if (this.ppAPI != null) { // Do stuff with the API here } } } ``` -------------------------------- ### Compile PlayerPoints Plugin with Gradle Source: https://github.com/rosewood-development/playerpoints/wiki/Home Use this command to build the PlayerPoints plugin JAR file from its source code using Gradle. The compiled plugin will be located in the \"build/libs\" directory. ```bash ./gradlew build ``` -------------------------------- ### Add PlayerPoints Dependency with Gradle Source: https://github.com/rosewood-development/playerpoints/wiki/API-Getting-Started Include the PlayerPoints plugin as a dependency in your Gradle project. Ensure you are using the correct repository and artifact coordinates. ```groovy repositories { maven { url = 'https://repo.rosewooddev.io/repository/public/' } } dependencies { compile 'org.black_ixx:playerpoints:$VERSION$' } ``` -------------------------------- ### Add PlayerPoints Dependency with Maven Source: https://github.com/rosewood-development/playerpoints/wiki/API-Getting-Started Configure your Maven project to include PlayerPoints as a provided dependency. This ensures the plugin is available at runtime without causing conflicts. ```xml rosewood-repo https://repo.rosewooddev.io/repository/public/ org.black_ixx playerpoints $VERSION$ provided ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.