37 lines
994 B
Kotlin
37 lines
994 B
Kotlin
/*
|
|
* Copyright © 2025 RTAkland
|
|
* Date: 2025/4/28 22:45
|
|
* Open Source Under Apache-2.0 License
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*/
|
|
|
|
package cn.rtast.runbroker.subserver
|
|
|
|
import cn.rtast.runbroker.common.JavaExecPath
|
|
import org.gradle.api.provider.Property
|
|
import org.gradle.api.tasks.Input
|
|
|
|
abstract class RunBrokerSubserverExtension {
|
|
@get:Input
|
|
abstract val minecraftServerPath: Property<String>
|
|
|
|
@get:Input
|
|
abstract val subServerCount: Property<Int>
|
|
|
|
@get:Input
|
|
abstract val brokerBukkitPluginPath: Property<String>
|
|
|
|
@get:Input
|
|
abstract val brokerBungeeCordPluginPath: Property<String>
|
|
|
|
@get:Input
|
|
abstract val javaExecPath: Property<JavaExecPath>
|
|
|
|
init {
|
|
subServerCount.convention(2)
|
|
minecraftServerPath.convention("./server.jar")
|
|
brokerBukkitPluginPath.convention("./plugin.jar")
|
|
brokerBungeeCordPluginPath.convention("./plugin.jar")
|
|
javaExecPath.convention(JavaExecPath.DEFAULT)
|
|
}
|
|
} |