Skip to content

Commit

Permalink
Fix perm
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Feb 18, 2023
1 parent 8ae47c1 commit 4107e3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/ltd/guimc/mirai/groupverify/PluginMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ object PluginMain : KotlinPlugin(
author("BakaBotTeam")
}
) {
lateinit var rootPerm: Permission
lateinit var enablePerm: Permission

override fun onEnable() {
Expand All @@ -37,7 +36,6 @@ object PluginMain : KotlinPlugin(
}

private fun registerPerms() = PermissionService.INSTANCE.run {
rootPerm = register(PermissionId("ltd.guimc.mirai.groupverify", "*"), "Root Permission")
enablePerm = register(PermissionId("ltd.guimc.mirai.groupverify", "enable"), "启用插件 (群)")
}

Expand Down

0 comments on commit 4107e3c

Please sign in to comment.