mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Fix And permission
This commit is contained in:
parent
027286a226
commit
074af959ab
@ -199,6 +199,6 @@ internal class AndCommandPermission(
|
|||||||
private val second: CommandPermission
|
private val second: CommandPermission
|
||||||
) : CommandPermission() {
|
) : CommandPermission() {
|
||||||
override fun CommandSender.hasPermission(): Boolean {
|
override fun CommandSender.hasPermission(): Boolean {
|
||||||
return this.hasPermission(first) || this.hasPermission(second)
|
return this.hasPermission(first) && this.hasPermission(second)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user