You will need to add module.exports
at the end of your file in order to export your functions.
where is cmd.handler
defined
i dont even know i have looked up and down of index.js and couldnt find it
1 Like
well it says it’s not a function so I don’t really know how to help you ¯\_(ツ)_/¯ if I sounded mad this conversation, I didn’t mean it BTW
cmd
is defined as require("mineflayer-cmd").plugin
, but the program may need the entire module to use cmd.handler
.