Fix not being able to remove shops
This commit is contained in:
parent
e0a4ed85a5
commit
75c0899298
|
|
@ -81,10 +81,10 @@ public class TransactionListener extends EventListener {
|
||||||
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
if (event.getAction() == Action.LEFT_CLICK_BLOCK) {
|
||||||
if (event.getPlayer().isSneaking() && (player.hasPermission("playershop.shop.check-stock") || playerShop.getOwnerUUID().equals(player.getUniqueId()))) {
|
if (event.getPlayer().isSneaking() && (player.hasPermission("playershop.shop.check-stock") || playerShop.getOwnerUUID().equals(player.getUniqueId()))) {
|
||||||
giveStockInfo(playerShop, player);
|
giveStockInfo(playerShop, player);
|
||||||
event.setCancelled(true);
|
// event.setCancelled(true);
|
||||||
} else {
|
} else {
|
||||||
giveInfo(playerShop, player);
|
giveInfo(playerShop, player);
|
||||||
event.setCancelled(true);
|
// event.setCancelled(true);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user