Fix bank packet exploit + fishing guild banking (#300)

This commit is contained in:
Daniel Ginovker
2019-12-17 15:11:59 -05:00
committed by GitHub
parent 0653db8ad1
commit 223c3194a8
8 changed files with 12 additions and 1 deletions
@@ -344,6 +344,11 @@ public class ShopAssistant {
player.getPacketSender().sendMessage("Selling items as an admin has been disabled.");
return false;
}
if (!player.inPlayerShopArea()) //Packet abuse!
{
player.getPacketSender().sendMessage("You're not in a shopping area! Enter one to sell items & manage your store.");
return false;
}
if(!player.isShopping) {
return false;
}