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 {
    url = uri("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>0.11</version>
    <scope>provided</scope>
</dependency>
implementation "xyz.xenondevs.nova:nova-api:0.11"
implementation("xyz.xenondevs.nova:nova-api:0.11")

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: