Developer API
You can import ExcellentCrates to your project using Maven. Replace {VERSION} with the latest version below:
<repository>
<id>nightexpress-releases</id>
<url>https://repo.nightexpressdev.com/releases</url>
</repository>
<dependency>
<groupId>su.nightexpress.excellentcrates</groupId>
<artifactId>crates-api</artifactId>
<version>{VERSION}</version>
</dependency>
Events
API Access
RegisteredServiceProvider<ExcellentCratesAPI> provider = Bukkit.getServer().getServicesManager().getRegistration(ExcellentCratesAPI.class);
ExcellentCratesAPI api = provider.getProvider();