mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-24 00:26:16 +02:00
fix disabled permission not working
This commit is contained in:
parent
0c0df6b856
commit
736b41f77d
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 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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue