diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java index b070a2aa..eab6bd55 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketOpenWindowMerchant.java @@ -1,6 +1,7 @@ package com.willfp.ecoenchants.display.packets; import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.ListenerPriority; import com.comphenix.protocol.events.PacketContainer; import com.willfp.ecoenchants.proxy.proxies.VillagerTradeProxy; import com.willfp.eco.util.ProxyUtils; @@ -20,7 +21,7 @@ public class PacketOpenWindowMerchant extends AbstractPacketAdapter { * @param plugin The plugin to listen through. */ public PacketOpenWindowMerchant(@NotNull final AbstractEcoPlugin plugin) { - super(plugin, PacketType.Play.Server.OPEN_WINDOW_MERCHANT, false); + super(plugin, PacketType.Play.Server.OPEN_WINDOW_MERCHANT, ListenerPriority.MONITOR, true); } @Override diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetCreativeSlot.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetCreativeSlot.java index 2a16e7eb..ebcd9032 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetCreativeSlot.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetCreativeSlot.java @@ -1,6 +1,7 @@ package com.willfp.ecoenchants.display.packets; import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.ListenerPriority; import com.comphenix.protocol.events.PacketContainer; import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.eco.util.plugin.AbstractEcoPlugin; @@ -14,7 +15,7 @@ public class PacketSetCreativeSlot extends AbstractPacketAdapter { * @param plugin The plugin to listen through. */ public PacketSetCreativeSlot(@NotNull final AbstractEcoPlugin plugin) { - super(plugin, PacketType.Play.Client.SET_CREATIVE_SLOT, false); + super(plugin, PacketType.Play.Client.SET_CREATIVE_SLOT, ListenerPriority.MONITOR, true); } @Override diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetSlot.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetSlot.java index 7e74a39f..7a26d773 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetSlot.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketSetSlot.java @@ -1,6 +1,7 @@ package com.willfp.ecoenchants.display.packets; import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.ListenerPriority; import com.comphenix.protocol.events.PacketContainer; import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.eco.util.plugin.AbstractEcoPlugin; @@ -15,7 +16,7 @@ public class PacketSetSlot extends AbstractPacketAdapter { * @param plugin The plugin to listen through. */ public PacketSetSlot(@NotNull final AbstractEcoPlugin plugin) { - super(plugin, PacketType.Play.Server.SET_SLOT, false); + super(plugin, PacketType.Play.Server.SET_SLOT, ListenerPriority.MONITOR, true); } @Override diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketWindowItems.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketWindowItems.java index c6d78e94..3ea00785 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketWindowItems.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/packets/PacketWindowItems.java @@ -1,6 +1,7 @@ package com.willfp.ecoenchants.display.packets; import com.comphenix.protocol.PacketType; +import com.comphenix.protocol.events.ListenerPriority; import com.comphenix.protocol.events.PacketContainer; import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.eco.util.plugin.AbstractEcoPlugin; @@ -15,7 +16,7 @@ public class PacketWindowItems extends AbstractPacketAdapter { * @param plugin The plugin to listen through. */ public PacketWindowItems(@NotNull final AbstractEcoPlugin plugin) { - super(plugin, PacketType.Play.Server.WINDOW_ITEMS, false); + super(plugin, PacketType.Play.Server.WINDOW_ITEMS, ListenerPriority.MONITOR, true); } @Override