fix disabled permission not working

This commit is contained in:
alexcrea 2025-03-18 17:57:45 +01:00
parent 62d32fcd7e
commit 7bde5bcb04
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F

View file

@ -14,11 +14,11 @@ object AnvilLoreEditUtil {
private const val LORE_BY_PAPER: String = "ca.lore_edit.paper"
private fun hasLoreEditByBookPermission(player: Permissible): Boolean {
return LoreEditConfigUtil.bookLoreEditNeedPermission && player.hasPermission(LORE_BY_BOOK)
return !LoreEditConfigUtil.bookLoreEditNeedPermission || player.hasPermission(LORE_BY_BOOK)
}
private fun hasLoreEditByPaperPermission(player: Permissible): Boolean {
return LoreEditConfigUtil.paperLoreEditNeedPermission && player.hasPermission(LORE_BY_PAPER)
return !LoreEditConfigUtil.paperLoreEditNeedPermission || player.hasPermission(LORE_BY_PAPER)
}
fun handleLoreAppendByBook(