Fix not being able to remove shops
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user