From 9fd7dac598bcb98552aa60fa3bf566370e6ba7d1 Mon Sep 17 00:00:00 2001 From: BingZi-233 Date: Fri, 2 Feb 2024 09:53:54 +0800 Subject: [PATCH] =?UTF-8?q?[6.1.0][dev]=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E5=8F=97=E5=88=B0=E7=BB=B4=E6=8A=A4=E7=9A=84expansion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../expansion-lang-tools/build.gradle.kts | 8 --- .../taboolib/expansion/LangExpansion.kt | 55 ------------------- settings.gradle.kts | 3 +- 3 files changed, 1 insertion(+), 65 deletions(-) delete mode 100644 expansion/expansion-lang-tools/build.gradle.kts delete mode 100644 expansion/expansion-lang-tools/src/main/kotlin/taboolib/expansion/LangExpansion.kt diff --git a/expansion/expansion-lang-tools/build.gradle.kts b/expansion/expansion-lang-tools/build.gradle.kts deleted file mode 100644 index b3694942f..000000000 --- a/expansion/expansion-lang-tools/build.gradle.kts +++ /dev/null @@ -1,8 +0,0 @@ -dependencies { - compileOnly(project(":common")) - compileOnly(project(":common-platform-api")) - compileOnly(project(":module:module-chat")) - compileOnly(project(":module:module-lang")) - compileOnly(project(":platform:platform-bukkit")) - compileOnly("ink.ptms.core:v11701:11701-minimize:universal") -} \ No newline at end of file diff --git a/expansion/expansion-lang-tools/src/main/kotlin/taboolib/expansion/LangExpansion.kt b/expansion/expansion-lang-tools/src/main/kotlin/taboolib/expansion/LangExpansion.kt deleted file mode 100644 index 32c03202f..000000000 --- a/expansion/expansion-lang-tools/src/main/kotlin/taboolib/expansion/LangExpansion.kt +++ /dev/null @@ -1,55 +0,0 @@ -package taboolib.expansion - -import taboolib.common.platform.ProxyCommandSender -import taboolib.common.platform.ProxyPlayer -import taboolib.common.platform.function.console -import taboolib.module.lang.sendInfo -import taboolib.module.lang.sendWarn - -internal fun infoMessageAsLang(node: String) { - console().sendInfo(node) -} - -internal fun infoMessageAsLang(node: String, vararg args: Any) { - console().sendInfo(node, *args) -} - -internal fun warningMessageAsLang(node: String) { - console().sendWarn(node) -} - -internal fun warningMessageAsLang(node: String, vararg args: Any) { - console().sendWarn(node, *args) -} - -internal fun ProxyCommandSender.infoAsLang(node: String) { - if (this is ProxyPlayer) { - this.sendInfo(node) - } else { - infoMessageAsLang(node) - } -} - -internal fun ProxyCommandSender.infoAsLang(node: String, vararg args: Any) { - if (this is ProxyPlayer) { - this.sendInfo(node, *args) - } else { - infoMessageAsLang(node, *args) - } -} - -internal fun ProxyCommandSender.warningAsLang(node: String) { - if (this is ProxyPlayer) { - this.sendWarn(node) - } else { - warningMessageAsLang(node) - } -} - -internal fun ProxyCommandSender.warningAsLang(node: String, vararg args: Any) { - if (this is ProxyPlayer) { - this.sendWarn(node, *args) - } else { - warningMessageAsLang(node, *args) - } -} \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index d230e8399..eb4d014f3 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -25,7 +25,6 @@ include( "expansion:expansion-geek-tool", "expansion:expansion-ioc", "expansion:expansion-javascript", - "expansion:expansion-lang-tools", "expansion:expansion-persistent-container", "expansion:expansion-persistent-container-object", "expansion:expansion-player-database", @@ -40,4 +39,4 @@ include( "platform:platform-bungee-impl", "platform:platform-velocity", "platform:platform-velocity-impl" -) \ No newline at end of file +)