From 7da4c0a1b3348b4b11fff20191cf22b0eda61c5d Mon Sep 17 00:00:00 2001 From: BeepoWuff <10000712+BeepoWuff@users.noreply.github.com> Date: Tue, 28 Dec 2021 16:26:20 +1000 Subject: [PATCH] Update ActionBars.SilentMode to behave as described in the config. Resolves enabling SilentMode completely disabling payment notification even when action bars are enabled. --- .../java/com/gamingmesh/jobs/economy/BufferedEconomy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/economy/BufferedEconomy.java b/src/main/java/com/gamingmesh/jobs/economy/BufferedEconomy.java index 9063312d..2658850b 100644 --- a/src/main/java/com/gamingmesh/jobs/economy/BufferedEconomy.java +++ b/src/main/java/com/gamingmesh/jobs/economy/BufferedEconomy.java @@ -240,7 +240,7 @@ public class BufferedEconomy { * @param payment {@link BufferedPayment} */ public void showPayment(BufferedPayment payment) { - if (Jobs.getGCManager().aBarSilentMode || payment.getOfflinePlayer() == null || !payment.getOfflinePlayer().isOnline() + if (payment.getOfflinePlayer() == null || !payment.getOfflinePlayer().isOnline() || !payment.containsPayment()) return; @@ -274,7 +274,7 @@ public class BufferedEconomy { Jobs.getGCManager().ActionBarsMessageByDefault); if (showInActionbar) { CMIActionBar.send(abp, message); - } else { + } else if (!Jobs.getGCManager().aBarSilentMode) { abp.sendMessage(message); } }