From 6e87e6d54c6f12c5087b5c9722c8541f0402d9b9 Mon Sep 17 00:00:00 2001 From: 4Parker02991 <4parker02991@noreply.localhost> Date: Sat, 27 Jan 2024 11:08:12 -0500 Subject: [PATCH] Update commands/servereval.js --- commands/servereval.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/servereval.js b/commands/servereval.js index 4697433..c3d5a1a 100644 --- a/commands/servereval.js +++ b/commands/servereval.js @@ -24,7 +24,7 @@ function sleep(ms) { bot.console.info({ text: util.inspect(eval(args.slice(0).join(' ')), { stylize }).substring(0, 32700) }) bot.console.info({ text: `Script input: ${script}` }) } else - if(bot.options.Core.CorelessMode && !source.sources.console){ + if(!bot.options.Core.enabled && !source.sources.console){ bot.chat(ChatMessage.fromNotch(await sleep(500) ?? { text: util.inspect(eval( args.slice(1).join(' ')), { stylize }).substring(0, 32700) }).toMotd().replaceAll('ยง', '&')) }else { @@ -34,7 +34,7 @@ function sleep(ms) { source.sendFeedback({ text: `Script input: ${script}` }) } } catch (err) { - if(bot.options.Core.CorelessMode && !source.sources.console){ + if(!bot.options.Core.enabled && !source.sources.console){ bot.chat(`&4${err.message}`) }else if(source.sources.console){ bot.console.warn({ text: err.message, color: 'red' })