fix: player filter not work

This commit is contained in:
ChomeNS
2025-04-09 19:20:51 +07:00
parent 72cbad0a99
commit 94f90575d8
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
2530
2531

View File

@@ -126,6 +126,8 @@ public class Main {
alreadyStarted = true;
try {
if (config.database.enabled) database = new DatabasePlugin(config);
final Configuration.BotOption[] botsOptions = config.bots;
for (final Configuration.BotOption botOption : botsOptions) {
@@ -133,9 +135,7 @@ public class Main {
bots.add(bot);
}
// initialize plugins
console = new ConsolePlugin(config);
if (config.database.enabled) database = new DatabasePlugin(config);
if (config.discord.enabled) discord = new DiscordPlugin(config);
if (config.irc.enabled) irc = new IRCPlugin(config);