diff --git a/src/lib/plugins/commands.js b/src/lib/plugins/commands.js index 41d44ce..524c32c 100644 --- a/src/lib/plugins/commands.js +++ b/src/lib/plugins/commands.js @@ -114,7 +114,7 @@ module.exports.player=function(player, serv) { player.handleCommand = async (str) => { try { var res = await player.commands.use(str, player.op); - if (res) player.chat('' + res); + if (res) player.chat(serv.color.red + res); } catch(err) { if (err instanceof UserError) player.chat('Error: ' + err.message); diff --git a/src/lib/plugins/external.js b/src/lib/plugins/external.js index f82adb4..e61b7c2 100644 --- a/src/lib/plugins/external.js +++ b/src/lib/plugins/external.js @@ -29,7 +29,7 @@ module.exports.server = function(serv, settings) { throw new Error('Cannot find plugin "' + p + '"'); } serv.addPlugin(p, require('../../plugins/' + p), settings.plugins[p]); - continue; + return; } serv.addPlugin(p, require(p), settings.plugins[p]); });