This commit is contained in:
7cc5c4f330d47060 2024-10-27 01:13:31 -04:00
parent 51e3973f8f
commit 5a9a01e137
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -12,7 +12,7 @@ export default function load (b) {
} }
}) })
b.runCommand = function (user, nick, uuid, command, type, subtype, prefix){ b.runCommand = function (user, nick, uuid, command, type, subtype, prefix){
const context = new Command(uuid, user, nick, command, "minecraft", type, subtype, prefix, b, {}) const context = new Command(uuid, user, nick, command, "minecraft", type, subtype, prefix, b, 0, {})
if(cmds[context.cmdName.toLowerCase()]){ if(cmds[context.cmdName.toLowerCase()]){
try { try {
cmds[context.cmdName.toLowerCase()].execute(context) cmds[context.cmdName.toLowerCase()].execute(context)