🚫 Finished bid clearing cmd, Closes #49

Took 3 minutes
This commit is contained in:
Kiran Hart 2023-05-10 20:24:07 -04:00
parent 75121ef290
commit 4c67437988
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3
3 changed files with 4 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class CommandAdmin extends AbstractCommand {
returnMoney = Boolean.parseBoolean(args[2]);
handleUserBidClear(player, returnMoney);
AuctionHouse.getInstance().getLocale().getMessage("general.admin.cleared bids").processPlaceholder("player", args[1]).sendPrefixedMessage(sender);
break;
case "opensell":
if (args.length < 2) return ReturnType.FAILURE;
@ -213,7 +213,7 @@ public class CommandAdmin extends AbstractCommand {
@Override
protected List<String> onTab(CommandSender sender, String... args) {
if (args.length == 1) return Arrays.asList("endall", "relistall", "logs", "viewexpired", "open", "clear");
if (args.length == 1) return Arrays.asList("endall", "relistall", "logs", "viewexpired", "open", "clear", "clearbids");
if (args.length == 2 && args[0].equalsIgnoreCase("relistAll")) return Arrays.asList("1", "2", "3", "4", "5");
if (args.length == 2 && (args[0].equalsIgnoreCase("viewexpired") || args[0].equalsIgnoreCase("open")))
return Bukkit.getOnlinePlayers().stream().map(OfflinePlayer::getName).collect(Collectors.toList());

View File

@ -189,4 +189,5 @@ public class PlayerListeners implements Listener {
stack = NBTEditor.set(stack, "AUCTION_REPAIRED", "AuctionHouseRepaired");
event.setResult(stack);
}
}

View File

@ -91,6 +91,7 @@ public class LocaleSettings {
languageNodes.put("general.qtybuydisabled", "&4%item_owner%&c is only accepting purchases of the entire stack.");
languageNodes.put("general.invalid bid amount", "&cBid either too low or too high");
languageNodes.put("general.invalid deletion range", "&cPlease enter a valid deletion range");
languageNodes.put("general.admin.cleared bids", "&aSuccessfully cleared any bids for the player&F: &e%player%");
languageNodes.put("pricing.minbaseprice", "&cThe minimum base price must be &a$%price%");