From 90f7a3bbacbbdedf6c35da706c0d3e75e791a326 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 895bd189..f4d5cc8f 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 @@ -45,7 +45,7 @@ class EnchantmentSoulbound( private val soulboundKey = plugin.namespacedKeyFactory.create("soulbound") @EventHandler( - priority = EventPriority.LOW, + priority = EventPriority.HIGHEST, ignoreCancelled = true ) fun handle(event: PlayerDeathEvent) {