Universal Minecraft server/proxy library for Plasmo Voice.
repositories {
maven("https://repo.plasmoverse.com/snapshots")
}
Shared API for server and proxy
implementation("su.plo.slib:api-common:$libVersion")
API for server platforms: Spigot/Fabric/Forge
implementation("su.plo.slib:api-server:$libVersion")
API for proxy platforms: Velocity/BungeeCord
implementation("su.plo.slib:api-proxy:$libVersion")
build.gradle.kts
modImplementation("su.plo.slib:fabric-$mcVersion:$libVersion")
You also need to add
Initialization: FabricMod.kt
implementation("su.plo.slib:forge-$mcVersion:$libVersion")
Initialization: ForgeMod.kt
implementation("su.plo.slib:spigot:$libVersion")
Initialization: SpigotPlugin.kt
implementation("su.plo.slib:minestom:$libVersion")
Initialization: MinestomExtension.kt
implementation("su.plo.slib:bungee:$libVersion")
Initialization: BungeePlugin.kt
implementation("su.plo.slib:velocity:$libVersion")
Initialization: VelocityPlugin.kt
There is not all minecraft versions for Fabric/Forge platforms, so you need to use older/newer supported minecraft version
slib minecraft version | Supported minecraft versions |
---|---|
1.16.5 | 1.16.5 |
1.17.1 | 1.17.1 |
1.19.3 | 1.18.2-1.19.4 |
1.20.1 | 1.20.1 |
1.20.2 | 1.20.2+ |
For instance, with minecraft 1.18.2, you need to use 1.19.3:
implementation("su.plo.slib:$platform-1.19.3:$libVersion")