From 565309846b7787904249cf6de6b6dc9994d86f4e Mon Sep 17 00:00:00 2001 From: DemiPixel Date: Mon, 23 Nov 2015 13:54:23 -0800 Subject: [PATCH] Fix packages, add catch to commands --- package.json | 5 +++-- src/lib/plugins/commands.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index af024c5..2a00b2f 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ }, "dependencies": { "babel-runtime": "^5.4.4", + "emit-then": "^1.0.2", "minecraft-data": "0.7.0", "minecraft-protocol": "0.16.2", "mkdirp": "0.5.1", @@ -32,10 +33,10 @@ "prismarine-block": "0.1.0", "prismarine-chunk": "0.2.1", "prismarine-entity": "0.1.0", - "prismarine-world": "0.3.3", - "prismarine-world-sync": "0.1.0", "prismarine-item": "0.0.0", "prismarine-windows": "0.0.0", + "prismarine-world": "0.3.3", + "prismarine-world-sync": "0.1.0", "random-seed": "^0.2.0", "request-promise": "^0.4.3", "requireindex": "~1.0.0", diff --git a/src/lib/plugins/commands.js b/src/lib/plugins/commands.js index c0f26cb..009a88e 100644 --- a/src/lib/plugins/commands.js +++ b/src/lib/plugins/commands.js @@ -75,6 +75,6 @@ module.exports.player=function(player) { player.handleCommand = (str) => { - player.commands.use(str); + player.commands.use(str).catch((err)=> setTimeout(() => {throw err;},0)); }; };