fix: console commands not working when bot is not logged in on the console server
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user