16 lines
443 B
JavaScript
16 lines
443 B
JavaScript
const name = 'reload'
|
|
const description = 'Attempts to reload all commands.'
|
|
const usages = []
|
|
const aliases = ['reload']
|
|
const enabled = true
|
|
|
|
const permLevel = 0
|
|
|
|
function execute (bot, cmd, player, args, handler) {
|
|
bot.core.run(`minecraft:tellraw @a ${JSON.stringify([
|
|
{ text: 'Reloading!', color: bot.colors.primary }
|
|
])}`)
|
|
handler.reload()
|
|
}
|
|
|
|
module.exports = { name, description, usages, aliases, enabled, execute, permLevel }
|