From 95df78da6f7064724857de76a87b8f5e329893d3 Mon Sep 17 00:00:00 2001 From: Allink Date: Sat, 20 May 2023 06:37:12 +0100 Subject: [PATCH] Expose MutableAudienceForwarder in SimpleTransactionLogger This will add the ability for us to add audiences to the MutableAudienceForwarder inside of SimpleTransactionLogger, which will make TransactionSpy much easier. --- .../fossil/economy/SimpleTransactionLogger.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransactionLogger.java b/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransactionLogger.java index 217af26..c8dec4f 100644 --- a/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransactionLogger.java +++ b/Fossil/src/main/java/me/totalfreedom/fossil/economy/SimpleTransactionLogger.java @@ -4,7 +4,6 @@ import me.totalfreedom.audience.MutableAudienceForwarder; import me.totalfreedom.economy.*; import me.totalfreedom.utils.FreedomLogger; import net.kyori.adventure.text.Component; -import org.bukkit.Bukkit; public class SimpleTransactionLogger implements TransactionLogger { @@ -40,4 +39,9 @@ public class SimpleTransactionLogger implements TransactionLogger audience.sendMessage(message); } + + public MutableAudienceForwarder getAudienceForwarder() + { + return audience; + } }