Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Pufff
Browse files Browse the repository at this point in the history
Former-commit-id: de8a75d
  • Loading branch information
Ghost-chu committed Apr 19, 2020
1 parent 56bf1d8 commit fdaf499
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public void onCommand(@NotNull CommandSender sender, @NotNull String commandLabe
final Block b = bIt.next();
final Shop shop = plugin.getShopManager().getShop(b.getLocation());
if (shop != null) {
if(amount != 1) {
if (!plugin.isAllowStack()) {
return;
}
}
if (shop.getModerator().isModerator(((Player) sender).getUniqueId()) || sender.hasPermission("quickshop.other.amount")) {
if (amount <= 0 || amount > Util.getItemMaxStackSize(shop.getItem().getType())) {
MsgUtil.sendMessage(sender, MsgUtil.getMessage("command.invalid-bulk-amount", sender, Integer.toString(amount)));
Expand Down

0 comments on commit fdaf499

Please sign in to comment.