mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 18:54:55 -05:00
17 lines
442 B
JavaScript
17 lines
442 B
JavaScript
|
module.exports = {
|
||
|
name: 'ayunsudo',
|
||
|
alias: [],
|
||
|
description: 'Sudo everyone on Ayunboom!',
|
||
|
trusted: 1,
|
||
|
usage: '<hash> <c:|command>',
|
||
|
execute: function(bot, username, usernameraw, sender, prefix, args) {
|
||
|
if (args[0]===bot.hash) {
|
||
|
for (const property of bot.players.list) {
|
||
|
bot.core.run('essentials:sudo ' + property.UUID + ' ' + args[1]);
|
||
|
}
|
||
|
} else {
|
||
|
throw new Error('Invalid hash');
|
||
|
}
|
||
|
},
|
||
|
};
|