This commit is contained in:
2023-03-15 11:45:35 +08:00
parent 75dfd94e66
commit 49b85cf291
17 changed files with 179 additions and 61 deletions
+12
View File
@@ -1,5 +1,6 @@
plugins {
kotlin("jvm")
id("com.github.johnrengelman.shadow")
}
group = "cc.maxmc.msm.child"
@@ -11,5 +12,16 @@ repositories {
dependencies {
implementation(kotlin("stdlib"))
implementation(project(":api"))
implementation(project(":common"))
@Suppress("VulnerableLibrariesLocal")
compileOnly("io.github.waterfallmc:waterfall-api:1.19-R0.1-SNAPSHOT")
}
tasks.shadowJar {
relocate("kotlin", "cc.maxmc.msm.lib.kotlin")
}
tasks.build {
dependsOn(tasks.shadowJar)
}
@@ -0,0 +1,18 @@
package cc.maxmc.msm.child
import cc.maxmc.msm.common.Placeholder
import cc.maxmc.msm.common.network.netty.NetworkRegistry
import net.md_5.bungee.api.plugin.Plugin
class MultiServerMan : Plugin() {
override fun onEnable() {
Placeholder.inject(NetworkRegistry.PacketDirection.CHILD_BOUND)
}
override fun onDisable() {
}
}
+3
View File
@@ -0,0 +1,3 @@
name: MultiServerMan-Parent
main: cc.maxmc.msm.child.MultiServerMan
author: TONY_All