mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
39 lines
882 B
JavaScript
39 lines
882 B
JavaScript
module.exports = {
|
|
name: 'eaglercrash',
|
|
alias: [],
|
|
description: 'Lags Eaglercraft and crashes it',
|
|
usage: '<hash> <on|off>',
|
|
trusted: 1,
|
|
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
|
switch (args[1]) {
|
|
case 'on':
|
|
bot.eaglercrash.on()
|
|
bot.tellraw(selector, [
|
|
{
|
|
text: 'Eaglercrash is now ',
|
|
color: 'white'
|
|
},
|
|
{
|
|
text: 'on',
|
|
color: 'green'
|
|
}
|
|
])
|
|
break
|
|
case 'off':
|
|
bot.eaglercrash.off()
|
|
bot.tellraw(selector, [
|
|
{
|
|
text: 'Eaglercrash is now ',
|
|
color: 'white'
|
|
},
|
|
{
|
|
text: 'off',
|
|
color: 'red'
|
|
}
|
|
])
|
|
break
|
|
default:
|
|
throw new Error('Invalid argument')
|
|
}
|
|
}
|
|
}
|