diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 2489bce4..c6ce83c5 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -340,16 +340,18 @@ public class ClientMessagePump implements NetMsgHandler { if (player == null) return; - if(msg.getNumItems() < 1) { - ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); - return;//catch gold dupe for negative numbers - } + if (!NPCVaultBankRangeCheck(player, origin, "bank")) return; CharacterItemManager itemManager = player.getCharItemManager(); + if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) { + ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); + return;//catch gold dupe for negative numbers + } + if (itemManager == null) return; @@ -402,16 +404,17 @@ public class ClientMessagePump implements NetMsgHandler { if (player == null) return; - if(msg.getNumItems() < 1) { - ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); - return;//catch gold dupe for negative numbers - } if (!NPCVaultBankRangeCheck(player, origin, "bank")) return; CharacterItemManager itemManager = player.getCharItemManager(); + if(msg.getNumItems() < 1 && itemManager.getItemByUUID(msg.getUUID()).getItemBaseID() == 7) { + ChatManager.chatSystemInfo(player, "You Have Attempted To Dupe. Please Don't"); + return;//catch gold dupe for negative numbers + } + if (itemManager == null) return;