diff --git a/src/lib/serverPlugins/modpe.js b/src/lib/serverPlugins/modpe.js index b0c2be2..e15d66c 100644 --- a/src/lib/serverPlugins/modpe.js +++ b/src/lib/serverPlugins/modpe.js @@ -184,7 +184,12 @@ function inject(serv,settings) player.on('modpe', function (command) { console.log(command); - procCmd(command); + try { + procCmd(command); + } + catch(err) { + console.log("MODPE error: "+err.stack); + } }); function newLevel() {