Change message to use ComponentBuilder

This commit is contained in:
kosgan10 2013-12-30 15:43:58 +02:00
parent d3159fe6ca
commit 6c795a25ff

View File

@ -46,7 +46,7 @@ public class CommandAlertRaw extends Command
create() );
} else
{
sender.sendMessage(ChatColor.RED + "An error occurred while parsing your message. " + e.getMessage());
sender.sendMessage(new ComponentBuilder( "An error occurred while parsing your message: " ).color( ChatColor.RED ).append( e.getMessage() ).create() );
}
}
}