mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 16:16:17 +02:00
fix disabled permission not working
This commit is contained in:
parent
62d32fcd7e
commit
7bde5bcb04
1 changed files with 2 additions and 2 deletions
|
|
@ -14,11 +14,11 @@ object AnvilLoreEditUtil {
|
||||||
private const val LORE_BY_PAPER: String = "ca.lore_edit.paper"
|
private const val LORE_BY_PAPER: String = "ca.lore_edit.paper"
|
||||||
|
|
||||||
private fun hasLoreEditByBookPermission(player: Permissible): Boolean {
|
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 {
|
private fun hasLoreEditByPaperPermission(player: Permissible): Boolean {
|
||||||
return LoreEditConfigUtil.paperLoreEditNeedPermission && player.hasPermission(LORE_BY_PAPER)
|
return !LoreEditConfigUtil.paperLoreEditNeedPermission || player.hasPermission(LORE_BY_PAPER)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun handleLoreAppendByBook(
|
fun handleLoreAppendByBook(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue