Getting Started

To use the Nova API you first have to add the xenondevs maven repository to your build configuration.

<repository>
    <id>xenondevs</id>
    <url>https://repo.xenondevs.xyz/releases</url>
</repository>
maven {
    url 'https://repo.xenondevs.xyz/releases'
}
maven("https://repo.xenondevs.xyz/releases")

Now you can add the API dependency to your build configuration:

<dependency>
    <groupId>xyz.xenondevs.nova</groupId>
    <artifactId>nova-api</artifactId>
    <version>VERSION</version>
    <scope>provided</scope>
</dependency>
implementation "xyz.xenondevs.nova:nova-api:VERSION"
implementation("xyz.xenondevs.nova:nova-api:VERSION")

To get the Nova instance you can use the Nova class:

val nova = Nova // (1)!
  1. Nova is an interface but the companion object delegates to Bukkit.getPluginManager().getPlugin("Nova") as Nova.
Nova nova = Nova.getNova();

You can use this instance to access everything else: