mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-02-17 06:40:17 -05:00
i rolled it back
This commit is contained in:
parent
95d3cbf836
commit
724119e091
1 changed files with 6 additions and 6 deletions
|
@ -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.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'}]));
|
||||
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'}]));
|
||||
}
|
||||
} 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.players.getPlayers()) {
|
||||
// if (property.match.startsWith('@')) continue;
|
||||
players += `\`${property.name}\` › \`${property.UUID}\`` + '\n';
|
||||
for (const property of bot.tabcompleteplayers) {
|
||||
if (property.match.startsWith('@')) continue;
|
||||
players += `\`${property.match}\` › \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
|
||||
}
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor('#FFFF00')
|
||||
|
|
Loading…
Reference in a new issue