mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-23 20:31:30 +01:00
swap partial buy to be off by default, flag moved to -p/-partialbuy
Took 1 minute
This commit is contained in:
parent
25a2c6fb87
commit
dbf61e97f9
@ -622,7 +622,7 @@ public class AuctionAPI {
|
||||
}
|
||||
|
||||
public void listAuction(Player seller, ItemStack original, ItemStack item, int seconds, double basePrice, double bidStartPrice, double bidIncPrice, double currentPrice, boolean isBiddingItem, boolean isUsingBundle, boolean requiresHandRemove) {
|
||||
listAuction(seller, original, item, seconds, basePrice, bidStartPrice, bidIncPrice, currentPrice, isBiddingItem, isUsingBundle, requiresHandRemove, false, true);
|
||||
listAuction(seller, original, item, seconds, basePrice, bidStartPrice, bidIncPrice, currentPrice, isBiddingItem, isUsingBundle, requiresHandRemove, false, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,7 +141,7 @@ public final class CommandSell extends AbstractCommand {
|
||||
boolean isBundle = false;
|
||||
boolean isInfinite = false;
|
||||
boolean isStackPrice = false;
|
||||
boolean noPartialBuy = false;
|
||||
boolean partialBuy = false;
|
||||
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (NumberUtils.isDouble(args[i])) {
|
||||
@ -156,8 +156,8 @@ public final class CommandSell extends AbstractCommand {
|
||||
if (args[i].equalsIgnoreCase("-b") || args[i].equalsIgnoreCase("-bundle"))
|
||||
isBundle = true;
|
||||
|
||||
if (args[i].equalsIgnoreCase("-e") || args[i].equalsIgnoreCase("-entirestack"))
|
||||
noPartialBuy = true;
|
||||
if (args[i].equalsIgnoreCase("-p") || args[i].equalsIgnoreCase("-partialbuy"))
|
||||
partialBuy = true;
|
||||
|
||||
if (player.hasPermission("auctionhouse.cmdflag.stack") && args[i].equalsIgnoreCase("-s") || args[i].equalsIgnoreCase("-stack"))
|
||||
isStackPrice = true;
|
||||
@ -302,7 +302,7 @@ public final class CommandSell extends AbstractCommand {
|
||||
isBundle,
|
||||
true,
|
||||
isInfinite,
|
||||
!noPartialBuy
|
||||
partialBuy
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class GUIConfirmListing extends AbstractPlaceholderGui {
|
||||
this.isBundle,
|
||||
this.requiresHandRemove,
|
||||
this.isInfinite,
|
||||
!this.isBiddingItem
|
||||
false
|
||||
);
|
||||
e.gui.close();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user