From 67672cd8ca5c0996a7418392915e6361d2a4a98c Mon Sep 17 00:00:00 2001 From: xdnw Date: Wed, 9 Aug 2023 01:21:05 +0100 Subject: [PATCH] Add * support for depo legacy agian --- src/main/java/link/locutus/discord/commands/bank/Deposits.java | 2 +- .../commands/manager/v2/impl/pw/commands/BankCommands.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/link/locutus/discord/commands/bank/Deposits.java b/src/main/java/link/locutus/discord/commands/bank/Deposits.java index a3f9aac2..7bdf063f 100644 --- a/src/main/java/link/locutus/discord/commands/bank/Deposits.java +++ b/src/main/java/link/locutus/discord/commands/bank/Deposits.java @@ -120,7 +120,7 @@ public String onCommand(Guild guild, IMessageIO channel, User author, DBNation m banker, author, guildDb.getHandler(), - PWBindings.nationOrAllianceOrGuildOrTaxId(args.get(0)), + (args.get(0).equalsIgnoreCase("*")) ? guildDb : PWBindings.nationOrAllianceOrGuildOrTaxId(args.get(0)), args.size() == 2 ? PWBindings.alliances(guild, args.get(1)) : null, cutOff != 0 ? cutOff : null, flags.contains('b'), diff --git a/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/BankCommands.java b/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/BankCommands.java index 5fb0d264..b25dc161 100644 --- a/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/BankCommands.java +++ b/src/main/java/link/locutus/discord/commands/manager/v2/impl/pw/commands/BankCommands.java @@ -1357,8 +1357,8 @@ else if (!force) { Boolean.FALSE.toString(), expire == null ? null : TimeUtil.secToTime(TimeUnit.MILLISECONDS, expire), null, - escrow_mode == null ? null : escrow_mode.name(), String.valueOf(convertToMoney), + escrow_mode == null ? null : escrow_mode.name(), String.valueOf(bypassChecks), null ).toJson();