mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-01-24 15:31:19 +01:00
changed to one if instead of 2?
This commit is contained in:
parent
ff11baf719
commit
3d39499780
@ -97,7 +97,7 @@ public class PlayerListeners implements Listener {
|
||||
final Player player = e.getPlayer();
|
||||
final AuctionHouse instance = AuctionHouse.getInstance();
|
||||
|
||||
if (instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()) != null) if (instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).getItemBeingListed() != null) {
|
||||
if (instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()) != null && instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).getItemBeingListed() != null) {
|
||||
|
||||
player.getInventory().addItem(instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).getItemBeingListed());
|
||||
instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).setItemBeingListed(null);
|
||||
|
Loading…
Reference in New Issue
Block a user