diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketChat.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketChat.kt index 59d6728d..2aba6e8d 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketChat.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketChat.kt @@ -11,7 +11,10 @@ import com.willfp.eco.proxy.ChatComponentProxy import org.bukkit.entity.Player class PacketChat(plugin: EcoPlugin) : - AbstractPacketAdapter(plugin, PacketType.Play.Server.CHAT, ListenerPriority.MONITOR, true) { + AbstractPacketAdapter(plugin, + PacketType.Play.Server.CHAT, + if (plugin.configYml.getBool("use-lower-protocollib-priority")) ListenerPriority.NORMAL else ListenerPriority.MONITOR, + true) { override fun onSend( packet: PacketContainer, player: Player, diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketOpenWindowMerchant.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketOpenWindowMerchant.kt index 7fad474a..e23fee9b 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketOpenWindowMerchant.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/display/PacketOpenWindowMerchant.kt @@ -13,7 +13,10 @@ import org.bukkit.inventory.ItemFlag import org.bukkit.inventory.MerchantRecipe class PacketOpenWindowMerchant(plugin: EcoPlugin) : - AbstractPacketAdapter(plugin, PacketType.Play.Server.OPEN_WINDOW_MERCHANT, ListenerPriority.MONITOR, true) { + AbstractPacketAdapter(plugin, + PacketType.Play.Server.OPEN_WINDOW_MERCHANT, + if (plugin.configYml.getBool("use-lower-protocollib-priority")) ListenerPriority.NORMAL else ListenerPriority.MONITOR, + true) { override fun onSend( packet: PacketContainer, player: Player, diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 73e029cc..1e470836 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -14,4 +14,9 @@ use-fast-collated-drops: true # bStats is important and you should keep it enabled. # This option is only here because of compliance with data protection laws. -enable-bstats: true \ No newline at end of file +enable-bstats: true + +# Some plugins use their own item display systems (eg Triton) +# And must be ran after eco. Don't enable this unless you run a conflicting plugin +# and have been told to enable it. +use-lower-protocollib-priority: false \ No newline at end of file