Fix And permission

This commit is contained in:
Him188 2020-05-14 21:55:14 +08:00
parent 027286a226
commit 074af959ab

View File

@ -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)
}
}