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.
This commit is contained in:
Allink 2023-05-20 06:37:12 +01:00
parent b98b0870b1
commit 95df78da6f
No known key found for this signature in database

View File

@ -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;
}
}