From 6e485ca34a12e79d992b6bd0f143aaf12f9eb345 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 8 Jan 2021 10:06:05 +0000 Subject: [PATCH] Reset packet priorities --- .../display/packets/PacketOpenWindowMerchant.java | 5 ++--- .../ecoenchants/display/packets/PacketSetCreativeSlot.java | 5 ++--- .../willfp/ecoenchants/display/packets/PacketSetSlot.java | 5 ++--- .../ecoenchants/display/packets/PacketWindowItems.java | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) 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 24f5aa5f..2342a0e5 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,13 +1,12 @@ 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; import com.willfp.eco.util.plugin.AbstractEcoPlugin; import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.ecoenchants.enchantments.meta.EnchantmentTarget; +import com.willfp.ecoenchants.proxy.proxies.VillagerTradeProxy; import org.bukkit.entity.Player; import org.bukkit.inventory.MerchantRecipe; import org.jetbrains.annotations.NotNull; @@ -22,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, ListenerPriority.MONITOR, true); + super(plugin, PacketType.Play.Server.OPEN_WINDOW_MERCHANT, false); } @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 42f237ff..d0ec0c6a 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,10 +1,9 @@ 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; +import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.ecoenchants.display.EnchantDisplay; import org.bukkit.entity.Player; import org.jetbrains.annotations.NotNull; @@ -16,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, ListenerPriority.MONITOR, true); + super(plugin, PacketType.Play.Client.SET_CREATIVE_SLOT, false); } @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 df33e665..3af365ef 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,10 +1,9 @@ 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; +import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.ecoenchants.display.EnchantDisplay; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemFlag; @@ -17,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, ListenerPriority.MONITOR, true); + super(plugin, PacketType.Play.Server.SET_SLOT, false); } @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 e941463a..5d8a693d 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,10 +1,9 @@ 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; +import com.willfp.eco.util.protocollib.AbstractPacketAdapter; import com.willfp.ecoenchants.display.EnchantDisplay; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemFlag; @@ -17,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, ListenerPriority.MONITOR, true); + super(plugin, PacketType.Play.Server.WINDOW_ITEMS, false); } @Override