mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-23 05:35:16 +01:00
Merge pull request #26 from Yakaita/main
changed to one if instead of 2?
This commit is contained in:
commit
a7305b8a9b
@ -97,7 +97,7 @@ public class PlayerListeners implements Listener {
|
|||||||
final Player player = e.getPlayer();
|
final Player player = e.getPlayer();
|
||||||
final AuctionHouse instance = AuctionHouse.getInstance();
|
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());
|
player.getInventory().addItem(instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).getItemBeingListed());
|
||||||
instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).setItemBeingListed(null);
|
instance.getAuctionPlayerManager().getPlayer(player.getUniqueId()).setItemBeingListed(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user