mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +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
|
||||
) : CommandPermission() {
|
||||
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