Start using the ChamoItemSkins API
Adding the dependency
Section titled “Adding the dependency”We host the API on our own maven repository, which you can add with these blocks of code:
repositories { maven { name = "chamosmpRepoReleases" url = uri("https://maven.chamosmp.net/releases") }}
dependencies { compileOnly("net.chamosmp.chamoitemskins:api:{verion}")}<project> <repositories> <repository> <id>chamosmp-repo-releases</id> <name>ChamoSMP Maven Repository</name> <url>https://maven.chamosmp.net/releases</url> </repository> </repositories>
<dependencies> <dependency> <groupId>net.chamosmp.chamoitemskins</groupId> <artifactId>api</artifactId> <version>1.0.0</version> </dependency> </dependencies></project>Getting the API instance
Section titled “Getting the API instance”Get the api class through the Bukkit services manager like this:
ChamoItemSkinsApi api = Bukkit.getServicesManager().load(ChamoItemSkinsApi.class);if (api != null) { // Use the api here}