refactor: improve how the bot loads plugins

This commit is contained in:
ChomeNS
2024-11-17 16:37:05 +07:00
parent 2a6ef53c25
commit a942cfd557
6 changed files with 45 additions and 61 deletions

View File

@@ -98,16 +98,9 @@ public class Bot {
this.bots = bots;
this.config = config;
ConsolePlugin.addListener(new ConsolePlugin.Listener() {
@Override
public void ready() {
Bot.this.ready();
}
});
}
public void ready () {
public void connect () {
this.tick = new TickPlugin(this);
this.chat = new ChatPlugin(this);
this.commandSpy = new CommandSpyPlugin(this);