2022-08-14 05:51:45 -04:00
|
|
|
/* eslint-disable max-len */
|
|
|
|
module.exports = {
|
|
|
|
name: 'myuser',
|
|
|
|
alias: [],
|
|
|
|
description: 'Shows your username (not nickname)',
|
|
|
|
usage: '',
|
|
|
|
trusted: 0,
|
|
|
|
execute: function(bot, username, usernameraw, sender, prefix, args) {
|
2022-11-07 06:30:37 -05:00
|
|
|
bot.tellraw('@a',
|
2022-11-06 06:11:41 -05:00
|
|
|
[
|
|
|
|
{
|
|
|
|
text: 'Your username is: ',
|
|
|
|
color: 'white',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: bot.getplayerusername[sender],
|
|
|
|
color: 'gold',
|
|
|
|
clickEvent: {
|
|
|
|
action: 'copy_to_clipboard',
|
|
|
|
value: bot.getplayerusername[sender],
|
|
|
|
},
|
|
|
|
hoverEvent: {
|
|
|
|
action: 'show_text',
|
|
|
|
contents: [
|
|
|
|
{
|
|
|
|
text: 'Click here to copy the username to your clipboard',
|
|
|
|
color: 'green',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2022-11-07 06:30:37 -05:00
|
|
|
]);
|
2022-08-14 05:51:45 -04:00
|
|
|
},
|
|
|
|
};
|