From d6814558ab8eef883f8b4478864f02d77f7ef2ff Mon Sep 17 00:00:00 2001 From: _OfTeN_ Date: Sun, 12 Feb 2023 16:44:15 +0300 Subject: [PATCH] Fixed soulbound compatibility with WorldGuardExtraFlags (and probably some other keepinventory plugins) --- .../willfp/ecoenchants/enchants/impl/EnchantmentSoulbound.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/impl/EnchantmentSoulbound.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/impl/EnchantmentSoulbound.kt index 419d3603..cea35423 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/impl/EnchantmentSoulbound.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoenchants/enchants/impl/EnchantmentSoulbound.kt @@ -44,7 +44,7 @@ class EnchantmentSoulbound( private val soulboundKey = plugin.namespacedKeyFactory.create("soulbound") @EventHandler( - priority = EventPriority.LOW, + priority = EventPriority.HIGHEST, ignoreCancelled = true ) fun handle(event: PlayerDeathEvent) {