feat: option to enable ClearChatNameAnnouncerPlugin in config
This commit is contained in:
@@ -35,6 +35,8 @@ public class Configuration {
|
||||
public ImposterFormatChecker imposterFormatChecker = new ImposterFormatChecker();
|
||||
|
||||
public OwnerAuthentication ownerAuthentication = new OwnerAuthentication();
|
||||
|
||||
public boolean announceClearChatUsername = false;
|
||||
|
||||
public List<String> trusted = new ArrayList<>();
|
||||
public SelfCare selfCare = new SelfCare();
|
||||
|
||||
@@ -11,6 +11,8 @@ public class ClearChatNameAnnouncerPlugin extends CommandSpyPlugin.Listener {
|
||||
public ClearChatNameAnnouncerPlugin (Bot bot) {
|
||||
this.bot = bot;
|
||||
|
||||
if (!bot.config.announceClearChatUsername) return;
|
||||
|
||||
bot.commandSpy.addListener(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user