gamemodeall change yes

This commit is contained in:
ChomeNS 2023-03-05 15:20:34 +07:00
parent 384d69a99f
commit 3f2ea25b67

View file

@ -1,10 +1,10 @@
module.exports = {
name: 'gamemodeall',
alias: [],
description: 'Gamemode everyone',
description: 'Gamemodes everyone (kinda useless now, used to be useful)',
usage: '<hash> <gamemode>',
trusted: 1,
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`)
}
}