17 lines
475 B
JavaScript
17 lines
475 B
JavaScript
const name = 'myuser'
|
|
const description = 'Shows your username'
|
|
const usages = []
|
|
const aliases = ['myuser']
|
|
const enabled = true
|
|
|
|
const permLevel = 0
|
|
|
|
function execute (bot, cmd, player, args, handler) {
|
|
bot.core.run(`/tellraw @a ${JSON.stringify([
|
|
{ text: 'Your username is: ', color: bot.colors.primary },
|
|
{ text: player.name, color: bot.colors.secondary },
|
|
'.'
|
|
])}`)
|
|
}
|
|
|
|
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }
|