mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Fix Plugin.permissionId
This commit is contained in:
parent
e31174a2b7
commit
6bb0241eef
@ -39,7 +39,7 @@ public abstract class AbstractJvmPlugin @JvmOverloads constructor(
|
|||||||
public final override val loader: JvmPluginLoader get() = super<JvmPluginInternal>.loader
|
public final override val loader: JvmPluginLoader get() = super<JvmPluginInternal>.loader
|
||||||
|
|
||||||
public final override fun permissionId(name: String): PermissionId =
|
public final override fun permissionId(name: String): PermissionId =
|
||||||
PermissionService.INSTANCE.allocatePermissionIdForPlugin(this, "*", PermissionService.PluginPermissionIdRequestType.PERMISSION_ID)
|
PermissionService.INSTANCE.allocatePermissionIdForPlugin(this, name, PermissionService.PluginPermissionIdRequestType.PERMISSION_ID)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重载 [PluginData]
|
* 重载 [PluginData]
|
||||||
|
Loading…
Reference in New Issue
Block a user