mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-16 21:11:22 +00:00
Fixes, make errors red
This commit is contained in:
parent
14811552ff
commit
e49daf1fcd
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue