Plugin class:
Build file:
Code:
@Plugin(
id = "hub-plugin",
name = "Hub Plugin",
version = "0.1",
)
class VelocityTest @Inject constructor(logger: Logger) {
init {
logger.info("Hub plugin started!")
}
}
Build file:
Code:
plugins {
kotlin("jvm") version "1.7.20"
}
group = "its.meee"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("com.velocitypowered:velocity-api:3.1.1")
annotationProcessor("com.velocitypowered:velocity-api:3.1.1")
}
- Version Output
- Velocity 3.1.2-SNAPSHOT (git-2d072151-b185)