mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
list command better!1!!
This commit is contained in:
parent
ad734e0f6a
commit
61e753c858
2 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
|||
[
|
||||
"Better auto refill on core break (instead of clooping fill core command in the core)",
|
||||
"*music list colors"
|
||||
"*music list colors",
|
||||
"Try catch *list"
|
||||
]
|
|
@ -11,9 +11,9 @@ module.exports = {
|
|||
try {
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: 'Players:', color: 'green'}]));
|
||||
await sleep(60);
|
||||
for (const property of bot.tabcompleteplayers) {
|
||||
if (property.match.startsWith('@')) continue;
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `${property.match}`, color: 'yellow'}, {text: ' › ', color: 'aqua'}, {text: `${bot.players.getPlayer(property.match).UUID}`, color: 'aqua'}]));
|
||||
for (const property of bot.players.getPlayers()) {
|
||||
// if (property.match.startsWith('@')) continue;
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `${property.name}`, color: 'yellow'}, {text: ' › ', color: 'aqua'}, {text: `${property.UUID}`, color: 'aqua'}]));
|
||||
}
|
||||
} catch (e) {
|
||||
return;
|
||||
|
@ -22,9 +22,9 @@ module.exports = {
|
|||
discordExecute: async function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
||||
try {
|
||||
let players = '';
|
||||
for (const property of bot.tabcompleteplayers) {
|
||||
if (property.match.startsWith('@')) continue;
|
||||
players += `\`${property.match}\` › \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
|
||||
for (const property of bot.players.getPlayers()) {
|
||||
// if (property.match.startsWith('@')) continue;
|
||||
players += `\`${property.name}\` › \`${property.UUID}\`` + '\n';
|
||||
}
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor('#FFFF00')
|
||||
|
|
Loading…
Reference in a new issue