fix: console commands not working when bot is not logged in on the console server

This commit is contained in:
ChomeNS
2025-06-24 18:53:15 +07:00
parent a30d299d8e
commit 8eda9ffb7e
2 changed files with 3 additions and 3 deletions

View File

@@ -95,8 +95,6 @@ public class ConsolePlugin implements Completer {
if (line == null) return;
for (final Bot bot : allBots) {
if (!bot.loggedIn) continue;
final String server = bot.getServerString(true);
if (!server.equals(consoleServer) && !consoleServer.equalsIgnoreCase("all")) continue;
@@ -107,6 +105,8 @@ public class ConsolePlugin implements Completer {
continue;
}
if (!bot.loggedIn) continue;
final Component stylizedMessage = ChatMessageUtilities.applyChatMessageStyling(line);
final Component rendered = RENDERER.render(