2022-08-14 05:51:45 -04:00
|
|
|
module.exports = {
|
|
|
|
name: 'eaglercrash',
|
|
|
|
alias: [],
|
2022-12-08 05:52:20 -05:00
|
|
|
description: 'Lags Eaglercraft and crash it',
|
2022-12-08 05:51:30 -05:00
|
|
|
usage: '<hash> <on|off>',
|
2022-08-14 05:51:45 -04:00
|
|
|
trusted: 1,
|
2022-11-28 06:32:49 -05:00
|
|
|
execute (bot, username, usernameraw, sender, prefix, args, config, hash, ownerhash, selector) {
|
2022-12-08 05:51:30 -05:00
|
|
|
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')
|
2022-08-14 05:51:45 -04:00
|
|
|
}
|
2022-11-27 02:35:28 -05:00
|
|
|
}
|
|
|
|
}
|