From 3e1f3d060e5df08ae55f29e4fef803909bda972d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?MC=7E=E8=9B=9F=E9=BE=99?= <1610105206@qq.com> Date: Fri, 30 Jun 2023 18:40:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 4 +-- .../cn/fd/utilities/bukkit/command/TestOne.kt | 27 +++++++++++++++++++ .../cn/fd/utilities/common/util/Utils.kt | 8 ++++++ project/module-core/build.gradle.kts | 1 + 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 plugin/platform-bukkit/src/main/kotlin/cn/fd/utilities/bukkit/command/TestOne.kt create mode 100644 project/module-core/build.gradle.kts diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a54c4b20..644e5b16 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,8 +6,8 @@ on: jobs: build: #奇怪的问题——ubuntu就是构建不了 - #runs-on: ubuntu-latest - runs-on: windows-latest + runs-on: ubuntu-latest + #runs-on: windows-latest steps: - name: Checkout Repository uses: actions/checkout@v3 diff --git a/plugin/platform-bukkit/src/main/kotlin/cn/fd/utilities/bukkit/command/TestOne.kt b/plugin/platform-bukkit/src/main/kotlin/cn/fd/utilities/bukkit/command/TestOne.kt new file mode 100644 index 00000000..f885b583 --- /dev/null +++ b/plugin/platform-bukkit/src/main/kotlin/cn/fd/utilities/bukkit/command/TestOne.kt @@ -0,0 +1,27 @@ +package cn.fd.utilities.bukkit.command + +import taboolib.common.platform.Platform +import taboolib.common.platform.PlatformSide +import taboolib.common.platform.command.CommandBody +import taboolib.common.platform.command.CommandHeader +import taboolib.common.platform.command.mainCommand +import taboolib.common.platform.command.subCommand + +@PlatformSide([Platform.BUKKIT]) +@CommandHeader(name = "fdutilities") +object MainCommand { + + /** + * ز + */ + @CommandBody + val main = mainCommand { + } + + // + @CommandBody + val test = subCommand { + + } + +} \ No newline at end of file diff --git a/project/module-common/src/main/kotlin/cn/fd/utilities/common/util/Utils.kt b/project/module-common/src/main/kotlin/cn/fd/utilities/common/util/Utils.kt index 9de14a72..7f0505f2 100644 --- a/project/module-common/src/main/kotlin/cn/fd/utilities/common/util/Utils.kt +++ b/project/module-common/src/main/kotlin/cn/fd/utilities/common/util/Utils.kt @@ -1,5 +1,13 @@ package cn.fd.utilities.common.util +import taboolib.common.platform.function.console +import taboolib.module.lang.Level +import taboolib.module.lang.sendMessage + +fun debug(level: Level = Level.INFO, message: String, vararg args: Any) { + console().sendMessage(level, message, args) +} + /** * һб(Ԫ)бкϲб(Ԫ) * Ч: diff --git a/project/module-core/build.gradle.kts b/project/module-core/build.gradle.kts new file mode 100644 index 00000000..281f896d --- /dev/null +++ b/project/module-core/build.gradle.kts @@ -0,0 +1 @@ +dependencies {} \ No newline at end of file