mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
gamemodeall change yes
This commit is contained in:
parent
384d69a99f
commit
3f2ea25b67
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'gamemodeall',
|
name: 'gamemodeall',
|
||||||
alias: [],
|
alias: [],
|
||||||
description: 'Gamemode everyone',
|
description: 'Gamemodes everyone (kinda useless now, used to be useful)',
|
||||||
usage: '<hash> <gamemode>',
|
usage: '<hash> <gamemode>',
|
||||||
trusted: 1,
|
trusted: 1,
|
||||||
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||||
bot.core.run(`minecraft:execute unless entity @s[name= run ] run gamemode ${args[1]} @a[name=!${bot.username}]`)
|
bot.core.run(`minecraft:gamemode ${args.join(' ')} @a`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue