Skip to content

Release v1.2.0

Latest

Choose a tag to compare

@sya-ri sya-ri released this 06 Apr 13:11
6d5e149

Full Changelog: 1.1.0...1.2.0


Compatible with CommandAPI v10.0.0

Changes

Support CommandAPI v10.0.0 features.

asyncOfflinePlayerArgument

inline fun CommandTree.asyncOfflinePlayerArgument(
    nodeName: String,
    crossinline block: Argument<*>.((CommandArguments) -> CompletableFuture<OfflinePlayer>) -> Unit = {},
)

inline fun CommandTree.asyncOfflinePlayerOptionalArgument(
    nodeName: String,
    crossinline block: Argument<*>.((CommandArguments) -> CompletableFuture<OfflinePlayer>?) -> Unit = {},
)

inline fun Argument<*>.asyncOfflinePlayerArgument(
    nodeName: String,
    crossinline block: Argument<*>.((CommandArguments) -> CompletableFuture<OfflinePlayer>) -> Unit = {},
)

inline fun Argument<*>.asyncOfflinePlayerOptionalArgument(
    nodeName: String,
    crossinline block: Argument<*>.((CommandArguments) -> CompletableFuture<OfflinePlayer>?) -> Unit = {},
)

Installation

repositories {
    mavenCentral()
}

dependencies {
    implementation("dev.s7a:commandapi-bukkit-kotlin-improved:1.2.0")
}