fix: chadgpt broke the command handler again ahh

This commit is contained in:
ChomeNS
2025-06-10 20:25:51 +07:00
parent 32f93f247e
commit 0ae4f32c3a

View File

@@ -256,7 +256,7 @@ public class CommandHandlerPlugin implements Listener {
} catch (final Exception e) {
bot.logger.error(e);
final String stackTrace = ExceptionUtilities.getStacktrace(e);
if (inGame && (bot.options.useChat || !bot.options.useCore)) {
if (!inGame || bot.options.useChat || !bot.options.useCore) {
context.sendOutput(Component.text(e.toString(), NamedTextColor.RED));
} else {
context.sendOutput(