From b23d8e421ad37de3ce803d1e6a4cda6163ddce32 Mon Sep 17 00:00:00 2001 From: Samarium <28302241+Samarium150@users.noreply.github.com> Date: Wed, 31 Aug 2022 14:57:00 -0600 Subject: [PATCH] fix: set parent perm of the trusted-user perm --- build.gradle.kts | 2 +- src/main/kotlin/MiraiConsoleLolicon.kt | 2 +- src/main/kotlin/command/Lolicon.kt | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c6e3e9b..8043b08 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ plugins { } group = "io.github.samarium150" -version = "6.0.2" +version = "6.0.3" repositories { mavenCentral() diff --git a/src/main/kotlin/MiraiConsoleLolicon.kt b/src/main/kotlin/MiraiConsoleLolicon.kt index 1b80e17..bb8cf7a 100644 --- a/src/main/kotlin/MiraiConsoleLolicon.kt +++ b/src/main/kotlin/MiraiConsoleLolicon.kt @@ -35,7 +35,7 @@ import java.net.Proxy object MiraiConsoleLolicon : KotlinPlugin( JvmPluginDescription( id = "io.github.samarium150.mirai.plugin.mirai-console-lolicon", - version = "6.0.2", + version = "6.0.3", name = "Lolicon" ) { author("Samarium150") diff --git a/src/main/kotlin/command/Lolicon.kt b/src/main/kotlin/command/Lolicon.kt index eb65bde..d3f1aca 100644 --- a/src/main/kotlin/command/Lolicon.kt +++ b/src/main/kotlin/command/Lolicon.kt @@ -51,11 +51,16 @@ import java.io.InputStream object Lolicon : CompositeCommand( MiraiConsoleLolicon, primaryName = "lolicon", - secondaryNames = CommandConfig.lolicon + secondaryNames = CommandConfig.lolicon, + description = "Lolicon发图命令" ) { val trusted: Permission by lazy { - PermissionService.INSTANCE.register(MiraiConsoleLolicon.permissionId("trusted"), "受信任权限") + PermissionService.INSTANCE.register( + MiraiConsoleLolicon.permissionId("trusted"), + "受信任权限", + MiraiConsoleLolicon.parentPermission + ) } @ExperimentalCommandDescriptors