Hello, we have an auction plugin, which works very well, the problem being that there is a duplication glitch. The player cuts his internet connection, executes the command to sell the object then he throws the object on the ground and puts the internet connection back, with this manipulation, the object are on the ground and at the same time in the auctionhouse, so duplicated.
In the video you can see the glitch, and you can see our custom gui, I specify that the GUI does NOTHING, everything is managed by the plugin, the gui simply displays according to the data of the plugin, nothing more.
In the video you can see that I press a button to put on sale, the button does nothing other than execute a command for the player (like the sudo of essentials)
Actually the plugin check 3 times if the player has the item in the inventory
With other auctionhouse plugins, we don't have the problem, we have taken a quick look at the code of these plugins, and we noticed in a very particular way of checking, we are looking for someone who can do the same in order to solve our problem. problem
Code of another AuctionHouse plugin with which we have no problem :
In the video you can see the glitch, and you can see our custom gui, I specify that the GUI does NOTHING, everything is managed by the plugin, the gui simply displays according to the data of the plugin, nothing more.
In the video you can see that I press a button to put on sale, the button does nothing other than execute a command for the player (like the sudo of essentials)
Actually the plugin check 3 times if the player has the item in the inventory
Code:
if (p.getInventory().getItem(slot) == null || p.getItemInHand() == null || p.getInventory().getItem(slot).getAmount() < amount)
{
p.sendMessage(ErrorMessageList.ERROR_001.getMessage());
hdv.getLogUtil().saveHdvMsgError(p.getDisplayName() + " la quantité est invalide.", LogHdvTypeList.MISE_EN_VENTE);
return;
}
Code:
if (stack.isSimilar(p.getInventory().getItem(slot))) {
Code:
if(stack.getType() == Material.AIR) { return; }
With other auctionhouse plugins, we don't have the problem, we have taken a quick look at the code of these plugins, and we noticed in a very particular way of checking, we are looking for someone who can do the same in order to solve our problem. problem
Code of another AuctionHouse plugin with which we have no problem :
Last edited:
