chipmunkbot3/commands/reload.js

17 lines
443 B
JavaScript
Raw Normal View History

2024-02-11 21:23:41 -05:00
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 }