'§a§lConsole§r'

This commit is contained in:
ChomeNS 2022-08-25 17:00:14 +07:00
parent 25f140cf71
commit b1ef5ae40c

View file

@ -494,7 +494,7 @@ dcclient.on('ready', async () => {
return; return;
} }
// if (line.startsWith("."))return console.log('command not found') // if (line.startsWith("."))return console.log('command not found')
if (line.startsWith('.')) return bot.command_handler.run('Console', e§lConsole§r', '*' + line.substring(1), 'c0ns0le-uuid'); if (line.startsWith('.')) return bot.command_handler.run('Console', a§lConsole§r', '*' + line.substring(1), 'c0ns0le-uuid');
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {'text': '[', 'color': 'dark_gray'}, {'text': `${bot.username} Console`, 'color': 'gray'}, {'text': '] ', 'color': 'dark_gray'}, {'text': 'chayapak ', 'color': 'green'}, {'text': ' ', 'color': 'dark_gray'}, MessageBuilder.fromString('&7' + line)])); bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {'text': '[', 'color': 'dark_gray'}, {'text': `${bot.username} Console`, 'color': 'gray'}, {'text': '] ', 'color': 'dark_gray'}, {'text': 'chayapak ', 'color': 'green'}, {'text': ' ', 'color': 'dark_gray'}, MessageBuilder.fromString('&7' + line)]));
} catch (e) { } catch (e) {
console.log(e); console.log(e);