mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-25 05:55:13 +01:00
parent
75121ef290
commit
4c67437988
@ -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());
|
||||
|
@ -189,4 +189,5 @@ public class PlayerListeners implements Listener {
|
||||
stack = NBTEditor.set(stack, "AUCTION_REPAIRED", "AuctionHouseRepaired");
|
||||
event.setResult(stack);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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%");
|
||||
|
Loading…
Reference in New Issue
Block a user