init structure
init protocol
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
group = "cc.maxmc.msm.parent"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
|
||||
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,21 @@
|
||||
package cc.maxmc.msm.parent
|
||||
|
||||
import cc.maxmc.msm.common.PacketInjector
|
||||
import net.md_5.bungee.api.ProxyServer
|
||||
import net.md_5.bungee.api.plugin.Plugin
|
||||
|
||||
class MultiServerMan: Plugin() {
|
||||
|
||||
override fun onEnable() {
|
||||
Thread.sleep(5000)
|
||||
ProxyServer.getInstance().scheduler.runAsync(this) {
|
||||
println("injecting")
|
||||
PacketInjector.inject()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDisable() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
name: MultiServerMan-Parent
|
||||
main: cc.maxmc.msm.parent.MultiServerMan
|
||||
author: TONY_All
|
||||
Reference in New Issue
Block a user