diff --git a/plugins/vm.js b/plugins/vm.js index e6f2172..3bb2592 100644 --- a/plugins/vm.js +++ b/plugins/vm.js @@ -12,7 +12,7 @@ const mineflayer = require('mineflayer') function inject (bot) { const chatMessage = require('prismarine-chat')(bot.version) const mcData = require('minecraft-data')(bot.version) - bot.vmoptions = { + bot.vmOptions = { timeout: 2000, sandbox: { run (cmd) { @@ -39,7 +39,7 @@ function inject (bot) { mcData } } - bot.vm = new VM(bot.vmoptions) + bot.vm = new VM(bot.vmOptions) }; module.exports = { inject }