refactor: don't ignore if the bot isn't logged in when sending a message in console
although the selector shows nothing when the message gets flushed when we login since it uses the old bot uuid
This commit is contained in:
@@ -101,14 +101,10 @@ public class ConsolePlugin implements Completer {
|
||||
|
||||
if (line.startsWith(prefix)) {
|
||||
final ConsoleCommandContext context = new ConsoleCommandContext(bot, prefix);
|
||||
|
||||
bot.commandHandler.executeCommand(line.substring(prefix.length()), context);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!bot.loggedIn) continue;
|
||||
|
||||
final Component stylizedMessage = ChatMessageUtilities.applyChatMessageStyling(line);
|
||||
|
||||
final Component rendered = RENDERER.render(
|
||||
@@ -166,7 +162,7 @@ public class ConsolePlugin implements Completer {
|
||||
return super.renderText(component, context);
|
||||
}
|
||||
|
||||
@SuppressWarnings("NonExtendableApiUsage") // Windows XP
|
||||
@SuppressWarnings("NonExtendableApiUsage") // we're not extending it silly
|
||||
@Override
|
||||
protected <B extends ComponentBuilder<?, ?>> void mergeStyle (final Component component, final B builder,
|
||||
final ConsoleFormatContext context) {
|
||||
|
||||
Reference in New Issue
Block a user