This repository has been archived on 2025-12-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
RunBroker/runbroker-subserver-plugin/src/main/kotlin/cn/rtast/runbroker/subserver/RunBrokerSubserverExtension.kt

37 lines
994 B
Kotlin
Raw Normal View History

2025-04-28 23:25:29 +08:00
/*
* 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)
}
}