Latest version: 2.7.4
repositories {
mavenCentral()
}
dependencies {
implementation("net.megavex:scoreboard-library-api:2.7.4")
runtimeOnly("net.megavex:scoreboard-library-implementation:2.7.4")
// If targeting a server version without native Adventure support, add it as well:
implementation("net.kyori:adventure-platform-bukkit:4.4.1")
}You will need to shade these dependencies and relocate them with something like Shadow.
<dependencies>
<dependency>
<groupId>net.megavex</groupId>
<artifactId>scoreboard-library-api</artifactId>
<version>2.7.4</version>
</dependency>
<dependency>
<groupId>net.megavex</groupId>
<artifactId>scoreboard-library-implementation</artifactId>
<version>2.7.4</version>
<scope>runtime</scope>
</dependency>
<!-- If targeting a server version without native Adventure support, add it as well: -->
<dependency>
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.4.1</version>
</dependency>
</dependencies>You will need to shade these dependencies and relocate them with maven-shade-plugin.
For ViaVersion awareness to be enabled, make sure to add ViaVersion
to softdepend or depend of your plugin.yml:
softdepend: ["ViaVersion"]
# or
depend: ["ViaVersion"]