Update commands/servereval.js
This commit is contained in:
parent
7a99f51b16
commit
6e87e6d54c
1 changed files with 2 additions and 2 deletions
|
@ -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: util.inspect(eval(args.slice(0).join(' ')), { stylize }).substring(0, 32700) })
|
||||||
bot.console.info({ text: `Script input: ${script}` })
|
bot.console.info({ text: `Script input: ${script}` })
|
||||||
} else
|
} 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('§', '&'))
|
bot.chat(ChatMessage.fromNotch(await sleep(500) ?? { text: util.inspect(eval( args.slice(1).join(' ')), { stylize }).substring(0, 32700) }).toMotd().replaceAll('§', '&'))
|
||||||
}else {
|
}else {
|
||||||
|
@ -34,7 +34,7 @@ function sleep(ms) {
|
||||||
source.sendFeedback({ text: `Script input: ${script}` })
|
source.sendFeedback({ text: `Script input: ${script}` })
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if(bot.options.Core.CorelessMode && !source.sources.console){
|
if(!bot.options.Core.enabled && !source.sources.console){
|
||||||
bot.chat(`&4${err.message}`)
|
bot.chat(`&4${err.message}`)
|
||||||
}else if(source.sources.console){
|
}else if(source.sources.console){
|
||||||
bot.console.warn({ text: err.message, color: 'red' })
|
bot.console.warn({ text: err.message, color: 'red' })
|
||||||
|
|
Loading…
Reference in a new issue